offsetY property

double offsetY
final

Y-axis offset in percentage from center Y of CameraPreview size rect.

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

Implementation

final double offsetY;