Package io.anyline2.view
Class CutoutRect
-
- All Implemented Interfaces:
public class CutoutRect
-
-
Field Summary
Fields Modifier and Type Field Description public RectF
rectOnSurface
public Rect
rectOnImage
public Rect
rectOnVisibleView
public CutoutConfig
cutoutConfig
public int
frameWidth
public int
frameHeight
public float
scale
-
Constructor Summary
Constructors Constructor Description CutoutRect(Context context, CutoutConfig config)
-
Method Summary
Modifier and Type Method Description CutoutConfig
getCutoutConfig()
int
getFrameWidth()
int
getFrameHeight()
float
getScale()
void
calcCutOutAndImageCropBounds(int frameWidth, int frameHeight, int viewWidth, int viewHeight, float scale)
int
getCutoutCropOffsetOnViewX()
int
getCutoutCropOffsetOnViewY()
-
-
Constructor Detail
-
CutoutRect
CutoutRect(Context context, CutoutConfig config)
-
-
Method Detail
-
getCutoutConfig
CutoutConfig getCutoutConfig()
-
getFrameWidth
int getFrameWidth()
-
getFrameHeight
int getFrameHeight()
-
getScale
float getScale()
-
calcCutOutAndImageCropBounds
void calcCutOutAndImageCropBounds(int frameWidth, int frameHeight, int viewWidth, int viewHeight, float scale)
-
getCutoutCropOffsetOnViewX
int getCutoutCropOffsetOnViewX()
-
getCutoutCropOffsetOnViewY
int getCutoutCropOffsetOnViewY()
-
-
-
-