mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
This allows you to serialize a <canvas> element's bitmap into a data: URI. Pretty neat! :^)
10 lines
291 B
Plaintext
10 lines
291 B
Plaintext
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);
|
|
|
|
};
|