Tizen Native API  3.0
Dali::FittingMode Namespace Reference

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.

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:
3.0, DALi version 1.0.0

Enumeration Type Documentation

Enumeration for FittingMode type.

Since:
3.0, DALi version 1.0.0
Enumerator:
SHRINK_TO_FIT 

Fit full image inside desired width & height, potentially not

Since:
3.0, DALi version 1.0.0 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

Since:
3.0, DALi version 1.0.0 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

Since:
3.0, DALi version 1.0.0 maintain aspect ratio.
FIT_HEIGHT 

Image fills whole height. Width is scaled proportionately to

Since:
3.0, DALi version 1.0.0 maintain aspect ratio.

Variable Documentation

TOP_LEFT.

CENTER.