offsetX property

double offsetX
final

X-axis offset in percentage from centerX of CameraPreview size rect.

For example: Coordinate of the centerX is 3. Whole lenght is 6. Coordinates of the crop area centerX if 4.5. Offset equals: (4.5 - 3) / 3 = 0.5. Offset forward by 50 %. If offsetX == 0 then centerX of the CropRect equals centerX of the CameraPreview size rect.

Implementation

final double offsetX;