Tizen Native API
Dali::FittingMode Namespace Reference

Fitting options, used when resizing images to fit desired dimensions. More...

Enumerations

enum  Type

Variables

const Type DEFAULT = SHRINK_TO_FIT
 TOP_LEFT.

Detailed Description

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.

Since :
2.4

Enumeration Type Documentation

Enumerator:
SHRINK_TO_FIT 

Fit full image inside desired width & height, potentially not filling one of either the desired image width or height with pixels.

Since :
2.4
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.

Since :
2.4
FIT_WIDTH 

Image fills whole width. Height is scaled proportionately to maintain aspect ratio.

Since :
2.4
FIT_HEIGHT 

Image fills whole height. Width is scaled proportionately to maintain aspect ratio.

Since :
2.4

Variable Documentation

TOP_LEFT.

CENTER.