[PATCH] Added new overloaded drawImage() methods to the TJSCanvasRenderingContext2D class
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
patch in attachment.
Steps to reproduce:
The patch follows it: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage#Parameters
It is useful to pass any canvas image source without using cast to TJSObject. For example:
var img: TJSHTMLImageElement; context: TJSCanvasRenderingContext2D; begin ... context.drawImage(img, 0, 0, width, height);
instead of:
var img: TJSHTMLImageElement; context: TJSCanvasRenderingContext2D; begin ... context.drawImage(TJSObject(img), 0, 0, width, height);
Mantis conversion info:
- Mantis ID: 34872
- Fixed in version: trunk
- Fixed in revision: 257
- Target version: 1.4.0