image (picture).
| Constants | |
| N/A | |
| Properties | |
| url | - string, url where this image came from. |
| width | - integer, pixels, width of the image. read-only property. |
| height | - integer, pixels, height of the image. read-only property. |
| graphics | - Graphics, returns graphics object that can be used for drawing on the image surface. |
| Methods | |
| this |
( width:integer, height:integer [, color: integer = 0] )
Constructs new Image object and initializes it by the color. |
| scale |
( width, height )
Scales - changes dimensions of the image. |
| toBytes |
( #png | #jpeg [, bpp] ) : Bytes
Saves content of the image as a byte vector that can be used e.g. for uploading it on the server. |
| toString |
( #png | #jpeg [, bpp] ) : string
Saves content of the image as a base64 encoded string. |
| saveAs |
( #png | #jpeg [, bpp] ) : true | false
Saves content of the image as file on the disk. Method opens file dialog allowing user to select file name. |