mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
955eef83b0
This allows you to serialize a <canvas> element's bitmap into a data: URI. Pretty neat! :^)
9 lines
291 B
Text
9 lines
291 B
Text
interface HTMLCanvasElement : HTMLElement {
|
|
|
|
CanvasRenderingContext2D? getContext(DOMString contextId);
|
|
readonly attribute unsigned long width;
|
|
readonly attribute unsigned long height;
|
|
|
|
USVString toDataURL(optional DOMString type = "image/png", optional double quality);
|
|
|
|
};
|