Fit

enum Fit : Enum<Fit> (source)

How content is fitted into a target frame.

Entries

Link copied to clipboard

Letterbox or pillarbox to fit inside the frame. The bars are written into the output.

Link copied to clipboard

Fill the frame and crop the overflow. The default when reframing.

Link copied to clipboard

Stretch to fill the frame, ignoring the source aspect ratio.

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
fun valueOf(value: String): Fit

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
fun values(): Array<Fit>

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