MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ FitMode

enum class MayaFlux::Portal::Graphics::FitMode : uint8_t
strong

How a source extent is mapped onto a destination extent.

Enumerator
STRETCH 

Whole source onto whole destination, aspect ignored.

CONTAIN 

Whole source, aspect kept, centered, the rest left uncovered.

COVER 

Aspect kept, destination filled, source cropped.

CENTER 

No scaling, centered, clipped to the destination.

TILE 

Source repeated at its own size.

TILE_MIRRORED 

Source repeated, every other tile mirrored.

Definition at line 301 of file GraphicsUtils.hpp.

301 : uint8_t {
302 STRETCH, ///< Whole source onto whole destination, aspect ignored
303 CONTAIN, ///< Whole source, aspect kept, centered, the rest left uncovered
304 COVER, ///< Aspect kept, destination filled, source cropped
305 CENTER, ///< No scaling, centered, clipped to the destination
306 TILE, ///< Source repeated at its own size
307 TILE_MIRRORED ///< Source repeated, every other tile mirrored
308};
@ TILE_MIRRORED
Source repeated, every other tile mirrored.
@ STRETCH
Whole source onto whole destination, aspect ignored.
@ CONTAIN
Whole source, aspect kept, centered, the rest left uncovered.
@ COVER
Aspect kept, destination filled, source cropped.
@ CENTER
No scaling, centered, clipped to the destination.
@ TILE
Source repeated at its own size.