mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 00:54:57 +00:00

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);
|
|
|
|
};
|