Orientation

data class Orientation(val swapDimension: Boolean, val targetRotation: RotationDegrees)

Represents the orientation of an image.

Constructors

Link copied to clipboard
fun Orientation(swapDimension: Boolean, targetRotation: RotationDegrees)

Functions

Link copied to clipboard
fun height(width: Int, height: Int): Int

Returns the height based on the orientation.

Link copied to clipboard
fun width(width: Int, height: Int): Int

Returns the width based on the orientation.

Properties

Link copied to clipboard

Specifies whether the image dimensions should be swapped.

Link copied to clipboard

The target rotation of the image.