Tizen Native API  3.0
Dali::SamplingMode Namespace Reference

Filtering options, used when resizing images to sample original pixels. More...

Enumerations

enum  Type
 Enumeration for SamplingMode type. More...

Variables

const Type DEFAULT = BOX
 TOP_LEFT.

Detailed Description

Filtering options, used when resizing images to sample original pixels.

A SamplingMode controls how pixels in an input image are sampled and combined to generate each pixel of a destination image during a scaling.

NoFilter and Box modes do not guarantee that the output pixel array exactly matches the rectangle specified by the desired dimensions and FittingMode, but all other filter modes do if the desired dimensions are `<=` the raw dimensions of the input image file.

Since:
3.0, DALi version 1.0.0

Enumeration Type Documentation

Enumeration for SamplingMode type.

Since:
3.0, DALi version 1.0.0
Enumerator:
BOX 

Iteratively box filter to generate an image of 1/2, 1/4,

Since:
3.0, DALi version 1.0.0 1/8, etc width and height and approximately the desired size. This is the default.
NEAREST 

For each output pixel, read one input pixel.

Since:
3.0, DALi version 1.0.0
LINEAR 

For each output pixel, read a quad of four input pixels

Since:
3.0, DALi version 1.0.0 and write a weighted average of them.
BOX_THEN_NEAREST 

Iteratively box filter to generate an image of 1/2, 1/4,

Since:
3.0, DALi version 1.0.0 1/8 etc width and height and approximately the desired size, then for each output pixel, read one pixel from the last level of box filtering.
BOX_THEN_LINEAR 

Iteratively box filter to almost the right size, then for

Since:
3.0, DALi version 1.0.0 each output pixel, read four pixels from the last level of box filtering and write their weighted average.
NO_FILTER 

No filtering is performed. If the SCALE_TO_FILL scaling mode

Since:
3.0, DALi version 1.0.0 is enabled, the borders of the image may be trimmed to match the aspect ratio of the desired dimensions.
DONT_CARE 

For caching algorithms where a client strongly prefers a

Since:
3.0, DALi version 1.0.0 cache-hit to reuse a cached image.

Variable Documentation

TOP_LEFT.

CENTER.