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 cropRectTop,
    int cropRectRight,
    int cropRectBottom,
    boolean shouldMirror
)

Public methods

boolean
equals(Object other)
final int

Bottom offset of the cropRect in pixels

final int

Left offset of the cropRect in pixels

final int

Right offset of the cropRect in pixels

final int

Top offset of the cropRect in pixels

final int

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

int
final boolean

Public constructors

TransformationInfo

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

Public methods

equals

public boolean equals(Object other)

getCropRectBottom

Added in 1.4.0-alpha06
public final int getCropRectBottom()

Bottom offset of the cropRect in pixels

getCropRectLeft

Added in 1.4.0-alpha06
public final int getCropRectLeft()

Left offset of the cropRect in pixels

getCropRectRight

Added in 1.4.0-alpha06
public final int getCropRectRight()

Right offset of the cropRect in pixels

getCropRectTop

Added in 1.4.0-alpha06
public final int getCropRectTop()

Top offset of the cropRect in pixels

getSourceRotation

Added in 1.4.0-alpha06
public final int getSourceRotation()

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

hashCode

public int hashCode()

shouldMirror

Added in 1.4.0-alpha06
public final boolean shouldMirror()