1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibWeb: Add CanvasRenderingContext2D.drawImage(image, x, y)

This function allows you to draw a loaded <img> element into a canvas.
This commit is contained in:
Andreas Kling 2020-04-14 20:38:44 +02:00
parent 370befbf52
commit 067ea5a2e0
4 changed files with 47 additions and 0 deletions

View file

@ -55,6 +55,9 @@ public:
void fill_rect(float x, float y, float width, float height);
void stroke_rect(float x, float y, float width, float height);
void draw_image(const HTMLImageElement&, float x, float y);
void scale(float sx, float sy);
void translate(float x, float y);