mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
LibWeb: Add basic support for HTMLCanvasElement.toDataURL() :^)
This allows you to serialize a <canvas> element's bitmap into a data: URI. Pretty neat! :^)
This commit is contained in:
parent
6793574003
commit
955eef83b0
3 changed files with 16 additions and 0 deletions
|
@ -4,4 +4,6 @@ interface HTMLCanvasElement : HTMLElement {
|
|||
readonly attribute unsigned long width;
|
||||
readonly attribute unsigned long height;
|
||||
|
||||
USVString toDataURL(optional DOMString type = "image/png", optional double quality);
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue