1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:37:34 +00:00

LibWeb: Add ImageData objects and implement 2D context putImageData()

An ImageData is a wrapper around a Bitmap wrapper around a
JS::Uint8ClampedArray.
This commit is contained in:
Andreas Kling 2020-04-21 23:49:51 +02:00
parent 54133c683d
commit 2d4c91df8e
10 changed files with 359 additions and 0 deletions

View file

@ -59,6 +59,9 @@ private:
static JS::Value move_to(JS::Interpreter&);
static JS::Value line_to(JS::Interpreter&);
static JS::Value create_image_data(JS::Interpreter&);
static JS::Value put_image_data(JS::Interpreter&);
NonnullRefPtr<CanvasRenderingContext2D> m_impl;
};