LayoutScale

sealed class LayoutScale

Type safe wrapper around Presentation.Layout.

Inheritors

Types

Link copied to clipboard
data object Fill : LayoutScale

Pixels cropped from the input frame, until the desired aspect ratio is achieved. Pixels may be cropped either from the bottom and top, or from the left and right sides, of the input frame.

Link copied to clipboard
data object Fit : LayoutScale

Empty pixels added above and below the input frame (for letterboxing), or to the left and right of the input frame (for pillarboxing), until the desired aspect ratio is achieved. All input frame pixels will be within the output frame.

Link copied to clipboard
data object Stretch : LayoutScale

Frame stretched larger on the x or y axes to fit the desired aspect ratio.