new Canvas()
Canvas utility.
- Source:
Methods
-
<static> loadImage(canvas, src, x, y, width, height, opt_callback)
-
Loads an image source into the canvas.
Parameters:
Name Type Description canvasHTMLCanvasElement The canvas dom element. srcstring The image source. xnumber The canvas horizontal coordinate to load the image. ynumber The canvas vertical coordinate to load the image. widthnumber The image width. heightnumber The image height. opt_callbackfunction Callback that fires when the image is loaded into the canvas. - Source: