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

Struct ResizeMethod

sealed struct ResizeMethod
ResizeMethod specifies the method used to resize an image when its dimensions differ from the image view dimensions. The choice of method affects both performance and visual quality.

Fields

Constants

AUTO

ResizeMethod = {0}
Automatically selects between RESIZE and SCALE based on image and view dimensions. Recommended for most use cases as it optimizes for both quality and performance.

RESIZE

ResizeMethod = {1}
The encoded image gets resized in memory before it gets decoded. This should be used instead of scale when the image is much larger than the view.

SCALE

ResizeMethod = {2}
The image gets drawn downscaled or upscaled. Compared to resize, scale is faster (usually hardware accelerated) and produces higher quality images. This should be used if the image is smaller or slightly bigger than the view.
Last modified on October 29, 2026