Image object
The Canvas.Image object loads and draws an image file onto a canvas surface
| Property | Description | Access | Type |
|---|---|---|---|
| Image.height | Get the canvas's height | readonly | number |
| Image.width | Get the canvas's width | readonly | number |
| Methods | Description | Return value |
|---|---|---|
| Image:draw() | Draws the Image on the Canvas | - |
| Image:drawrect() | Draws the Image resized on the Canvas | - |
| Image:drawsub() | Draws a sub part of the Image on the Canvas | - |