Image class represents graphical images and is used for loading images from a specified URL.
Images can be resized as they are loaded (for example to reduce the amount of memory consumed by the image). The application can specify the quality of filtering used when scaling, and whether or not to preserve the original image's aspect ratio.
Use ImageView for displaying images loaded with this class. The same
Image instance can be displayed by multiple
Example code for loading images.
The string representing the URL to use in fetching the pixel data.
The width of the bounding box within which the source image is resized as necessary to fit. If set to a value
The height of the bounding box within which the source image is resized as necessary to fit. If set to a value
Indicates whether to preserve the aspect ratio of the original image when scaling to fit the image within the bounding box provided by
Indicates whether to use a better quality filtering algorithm or a faster one when scaling this image to fit within the bounding box provided by
If not initialized or set to
The placeholder image which is used when #backgroundLoading is set to true and the URL is loaded in the background.
Indicates whether the #placeholder image is used while the URL is loaded in the background.