CropViewLayout
Crop View Layout.
Since
0.5.0
Constructors
Properties
The currently scale value of original image.
The imageview is used to show original image.
The value of mMatrix.
Currently gesture.
The matrix that is used to record last time state of the original image.
The coordinate when MotionEvent.getAction is MotionEvent.ACTION_DOWN.
Functions
Calculate require size
Check border
Get bitmap with require size.
Get cropped image above api28
Get cropped image under api28
Get image orientation by ExifInterface.
Get the range of the image according to the ImageView.getDrawable.
When multi-touch, calculate the center coordinates of the first two fingers put down.
When multi-touch, calculate the distance between the first two fingers put down.
Initialize the image file that needs to be cropped.
Set image src