PreviewImageBounds

data class PreviewImageBounds(x: Float, y: Float, width: Float, height: Float)

Defines location and size of the actual preview image relative to the PreviewView. This information can be used to convert from the image coordinate system to the view coordinate system.

See also

Constructors

PreviewImageBounds
Link copied to clipboard
fun PreviewImageBounds(x: Float, y: Float, width: Float, height: Float)

Functions

toViewX
Link copied to clipboard
fun toViewX(imageX: Float): Float
toViewY
Link copied to clipboard
fun toViewY(imageY: Float): Float

Properties

height
Link copied to clipboard
val height: Float

height of the preview image

width
Link copied to clipboard
val width: Float

width of the preview image

x
Link copied to clipboard
val x: Float

x-coordinate of the top-left corner of the preview image relative to the PreviewView component

y
Link copied to clipboard
val y: Float

y-coordinate of the top-left corner of the preview image relative to the PreviewView component