Convert a String representing an URI to an Image and serialize it in the given format.
| Expression | Result | 
|---|---|
| 'image.png'.asImage('jpg') | insert the image 'image.jpg' | 
Convert a String representing an URI to an Image.
| Expression | Result | 
|---|---|
| 'image.png'.asImage() | insert the image 'image.png' | 
Fits the Image in the given the given rectangle width and height.
| Expression | Result | 
|---|---|
| myImage.fit(200, 300) | will fit the image in a rectangle (width=200, height=300) | 
Sets the height of the image.
| Expression | Result | 
|---|---|
| myImage.getHeight() | 300 | 
Gets the width of the image.
| Expression | Result | 
|---|---|
| myImage.getWidth() | 300 | 
Sets the conserve ratio of the image.
| Expression | Result | 
|---|---|
| myImage.setConserveRatio(false) | set the conserve ratio to false | 
Sets the height of the image.
| Expression | Result | 
|---|---|
| myImage.setHeight(300) | set the height to 300 | 
Sets the width of the image.
| Expression | Result | 
|---|---|
| myImage.setWidth(300) | set the witdh to 300 |