TransformationInfo


public final 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(
    int sourceRotation,
    int cropRectLeft,
    int cropRectRight,
    int cropRectTop,
    int cropRectBottom,
    boolean shouldMirror
)

Public methods

final int
final int
final int
final int
final int
final boolean

Public constructors

TransformationInfo

Added in 1.4.0-alpha05
public TransformationInfo(
    int sourceRotation,
    int cropRectLeft,
    int cropRectRight,
    int cropRectTop,
    int cropRectBottom,
    boolean shouldMirror
)

Public methods

getCropRectBottom

Added in 1.4.0-alpha05
public final int getCropRectBottom()

getCropRectLeft

Added in 1.4.0-alpha05
public final int getCropRectLeft()

getCropRectRight

Added in 1.4.0-alpha05
public final int getCropRectRight()

getCropRectTop

Added in 1.4.0-alpha05
public final int getCropRectTop()

getSourceRotation

Added in 1.4.0-alpha05
public final int getSourceRotation()

shouldMirror

Added in 1.4.0-alpha05
public final boolean shouldMirror()