mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 17:28:30 +00: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);
|
|
|
|
};
|