TransformationInfo


class TransformationInfo


Transformation information associated with the preview output.

This information can be used to transform the Surface of a ViewFinder to be suitable to be displayed.

Summary

Public constructors

TransformationInfo(
    sourceRotation: Int,
    cropRectLeft: Int,
    cropRectTop: Int,
    cropRectRight: Int,
    cropRectBottom: Int,
    shouldMirror: Boolean
)

Public functions

open operator Boolean
equals(other: Any?)
open Int

Public properties

Int

Bottom offset of the cropRect in pixels

Int

Left offset of the cropRect in pixels

Int

Right offset of the cropRect in pixels

Int

Top offset of the cropRect in pixels

Boolean
Int

Rotation of the source, relative to the device's natural rotation.

Public constructors

TransformationInfo

Added in 1.4.0-alpha06
TransformationInfo(
    sourceRotation: Int,
    cropRectLeft: Int,
    cropRectTop: Int,
    cropRectRight: Int,
    cropRectBottom: Int,
    shouldMirror: Boolean
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

cropRectBottom

Added in 1.4.0-alpha06
val cropRectBottomInt

Bottom offset of the cropRect in pixels

cropRectLeft

Added in 1.4.0-alpha06
val cropRectLeftInt

Left offset of the cropRect in pixels

cropRectRight

Added in 1.4.0-alpha06
val cropRectRightInt

Right offset of the cropRect in pixels

cropRectTop

Added in 1.4.0-alpha06
val cropRectTopInt

Top offset of the cropRect in pixels

shouldMirror

Added in 1.4.0-alpha06
val shouldMirrorBoolean

sourceRotation

Added in 1.4.0-alpha06
val sourceRotationInt

Rotation of the source, relative to the device's natural rotation.