FormXLetterbox

data class FormXLetterbox(val sourceWidth: Int = 0, val sourceHeight: Int = 0, val targetWidth: Int = 0, val targetHeight: Int = 0, val scale: Float = 0.0f, val offsetX: Int = 0, val offsetY: Int = 0, val scaledWidth: Int = 0, val scaledHeight: Int = 0)

FormXLetterbox contains the information of how to letterbox a source image to a target image

Constructors

Link copied to clipboard
fun FormXLetterbox(sourceWidth: Int = 0, sourceHeight: Int = 0, targetWidth: Int = 0, targetHeight: Int = 0, scale: Float = 0.0f, offsetX: Int = 0, offsetY: Int = 0, scaledWidth: Int = 0, scaledHeight: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val offsetX: Int = 0

the offset of the source image to the target image in x direction

Link copied to clipboard
val offsetY: Int = 0

the offset of the source image to the target image in y direction

Link copied to clipboard
val scale: Float = 0.0f

the scale factor of the source image to the target image

Link copied to clipboard
val scaledHeight: Int = 0

the scaled height of the source image

Link copied to clipboard
val scaledWidth: Int = 0

the scaled width of the source image

Link copied to clipboard
val sourceHeight: Int = 0

the height of the source image

Link copied to clipboard
val sourceWidth: Int = 0

the width of the source image

Link copied to clipboard
val targetHeight: Int = 0

the height of the target image

Link copied to clipboard
val targetWidth: Int = 0

the width of the target image