mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb: Implement CanvasRenderingContext2D.getImageData()
The actual copying of the pixel values into the created ImageData object is a bit ugly, but Gfx::Painter doesn't like the underlying RGBA8888 bitmap.
This commit is contained in:
parent
08608932cc
commit
e890cd5464
3 changed files with 42 additions and 0 deletions
|
@ -37,6 +37,7 @@ interface CanvasRenderingContext2D {
|
|||
attribute double lineWidth;
|
||||
|
||||
ImageData createImageData(long sw, long sh);
|
||||
ImageData getImageData(long sx, long sy, long sw, long sh);
|
||||
undefined putImageData(ImageData imagedata, double dx, double dy);
|
||||
|
||||
undefined save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue