Package io.anyline2.view
Class CutoutRect
- java.lang.Object
-
- io.anyline2.view.CutoutRect
-
public class CutoutRect extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description android.graphics.Rect
rectOnImage
android.graphics.RectF
rectOnSurface
android.graphics.Rect
rectOnVisibleView
-
Constructor Summary
Constructors Constructor Description CutoutRect(android.content.Context context, CutoutConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
calcCutOutAndImageCropBounds(int frameWidth, int frameHeight, int viewWidth, int viewHeight, float scale)
CutoutConfig
getCutoutConfig()
int
getCutoutCropOffsetOnViewX()
int
getCutoutCropOffsetOnViewY()
int
getFrameHeight()
int
getFrameWidth()
float
getScale()
-
-
-
Constructor Detail
-
CutoutRect
public CutoutRect(android.content.Context context, CutoutConfig config)
-
-
Method Detail
-
calcCutOutAndImageCropBounds
public void calcCutOutAndImageCropBounds(int frameWidth, int frameHeight, int viewWidth, int viewHeight, float scale)
-
getCutoutConfig
public CutoutConfig getCutoutConfig()
-
getCutoutCropOffsetOnViewX
public int getCutoutCropOffsetOnViewX()
-
getCutoutCropOffsetOnViewY
public int getCutoutCropOffsetOnViewY()
-
getFrameWidth
public int getFrameWidth()
-
getFrameHeight
public int getFrameHeight()
-
getScale
public float getScale()
-
-