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:
parent
370befbf52
commit
067ea5a2e0
4 changed files with 47 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue