mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09: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
Notes:
sideshowbarker
2024-07-18 19:22:07 +09:00
Author: https://github.com/awesomekling
Commit: 955eef83b0
3 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue