Interface IImage
interface IImage
Extends com.amazon.apmf.IStandard
Represents the instance of an image.
The image instance can be passed to the IImageView::setImage function to display it on the view.
Methods
getWidth()
i32 getWidth()
Gets the width of an image.
Returns
i32
The width of an image.
getHeight()
i32 getHeight()
Gets the height of an image.
Returns
i32
The height of an image.
getType()
ImageType getType()
Gets the type of an image. See ImageType.
Returns
ImageType
The type of an image.
resize()
Resizes the current image. Resizing images at high resize quality on the CPU can be very computationally expensive as it has to interpolate new pixel values from surrounding pixels, which involves a lot of floating point operations.Resizing images at low resize quality by comparison is relatively cheap.IImage*resize(com.amazon.kepler.uitoolkit.graphics.SizepreferredSize,ResizeQuality?resizeQuality,AspectRatioMode?aspectRatioMode)
Parameters
preferredSize
com.amazon.kepler.uitoolkit.graphics.Size — Required
Size to which image should be resized
resizeQuality
ResizeQuality? — Optional
ResizeQuality of the resized image.
aspectRatioMode
AspectRatioMode? — Optional
AspectRatioMode of the resized image.
Returns
IImage*
A new resized IImage instance.

