1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:08:12 +00:00

LibWeb: Add all overloads of CanvasRenderingContext2D::drawImage()

This commit is contained in:
Idan Horowitz 2022-03-05 20:54:22 +02:00 committed by Andreas Kling
parent 59e9e7cc61
commit bc0fafade9
3 changed files with 58 additions and 7 deletions

View file

@ -49,7 +49,9 @@ public:
void stroke_rect(float x, float y, float width, float height);
void clear_rect(float x, float y, float width, float height);
DOM::ExceptionOr<void> draw_image(CanvasImageSource const&, float x, float y);
DOM::ExceptionOr<void> draw_image(CanvasImageSource const&, float destination_x, float destination_y);
DOM::ExceptionOr<void> draw_image(CanvasImageSource const&, float destination_x, float destination_y, float destination_width, float destination_height);
DOM::ExceptionOr<void> draw_image(CanvasImageSource const&, float source_x, float source_y, float source_width, float source_height, float destination_x, float destination_y, float destination_width, float destination_height);
void scale(float sx, float sy);
void translate(float x, float y);