1
Fork 0
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:
Linus Groh 2022-03-04 19:07:35 +01:00 committed by Andreas Kling
parent 08608932cc
commit e890cd5464
3 changed files with 42 additions and 0 deletions

View file

@ -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();