1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:37:34 +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:
Andreas Kling 2021-04-19 23:47:29 +02:00
parent 6793574003
commit 955eef83b0
3 changed files with 16 additions and 0 deletions

View file

@ -48,6 +48,8 @@ public:
unsigned width() const;
unsigned height() const;
String to_data_url(const String& type, Optional<double> quality) const;
private:
virtual RefPtr<Layout::Node> create_layout_node() override;