Tizen Native API
4.0
|
Fitting options, used when resizing images to fit desired dimensions. More...
Enumerations | |
enum | Type |
Enumeration for FittingMode type. More... | |
Variables | |
const Type | DEFAULT = SHRINK_TO_FIT |
TOP_LEFT. |
Fitting options, used when resizing images to fit desired dimensions.
A fitting mode controls the region of a loaded image to be mapped to the desired image rectangle. All fitting modes preserve the aspect ratio of the image contents.
Enumeration for FittingMode type.
SHRINK_TO_FIT |
Fit full image inside desired width & height, potentially not filling one of either the desired image width or height with pixels.
|
SCALE_TO_FILL |
Image fills whole desired width & height with image data. The image is centred in the desired dimensions, exactly touching in one dimension, with image regions outside the other desired dimension cropped away.
|
FIT_WIDTH |
Image fills whole width. Height is scaled proportionately to maintain aspect ratio.
|
FIT_HEIGHT |
Image fills whole height. Width is scaled proportionately to maintain aspect ratio.
|
TOP_LEFT.
CENTER.