VideoScale

How the picture occupies the surface it is drawn into.

The pixel aspect ratio and the container rotation are ALWAYS honoured first; these modes only decide what happens to the shape that remains against the viewport's shape. That is why there is no "ignore anamorphic stretch" mode: a mode that draws the pixels wrong is a rendering bug with a setting attached.

Entries

Link copied to clipboard

The whole picture, shape kept, letterboxed or pillarboxed as the shapes demand. The default.

Link copied to clipboard

The whole viewport, shape kept, cropping whichever picture axis overhangs.

Link copied to clipboard

The whole viewport, shape sacrificed: both axes scale independently.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.