ladybird/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.idl
Andreas Kling 955eef83b0 LibWeb: Add basic support for HTMLCanvasElement.toDataURL() :^)
This allows you to serialize a <canvas> element's bitmap into a
data: URI. Pretty neat! :^)
2021-04-19 23:49:16 +02:00

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