Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

IImage* resize(com.amazon.kepler.uitoolkit.graphics.Size preferredSize, ResizeQuality? resizeQuality, AspectRatioMode? aspectRatioMode)
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.

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.
Last modified on October 29, 2026