Dali 3D User Interface Engine
Enumerations | Variables
Dali::FittingMode Namespace Reference

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

Enumerations

enum  Type { SHRINK_TO_FIT, SCALE_TO_FILL, FIT_WIDTH, FIT_HEIGHT }
 

Variables

const Type DEFAULT = SHRINK_TO_FIT
 TOP_LEFT. More...
 

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. .0

Enumeration Type Documentation

Enumerator
SHRINK_TO_FIT 

Fit full image inside desired width & height, potentially not .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 .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 .0 maintain aspect ratio.

FIT_HEIGHT 

Image fills whole height.

Width is scaled proportionately to .0 maintain aspect ratio.

Definition at line 52 of file image-operations.h.

Variable Documentation

const Type Dali::FittingMode::DEFAULT = SHRINK_TO_FIT
Dali Docs Home
Read more about Dali