1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:27:44 +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

@ -31,6 +31,8 @@ interface CanvasRenderingContext2D {
undefined strokeText(DOMString text, double x, double y, optional double maxWidth);
undefined drawImage((HTMLImageElement or HTMLCanvasElement) image, double dx, double dy);
undefined drawImage((HTMLImageElement or HTMLCanvasElement) image, double dx, double dy, double dw, double dh);
undefined drawImage((HTMLImageElement or HTMLCanvasElement) image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
attribute DOMString fillStyle;
attribute DOMString strokeStyle;