CropViewDemo
CropViewDemo copied to clipboard
裁剪旋转的自定义View(Custom View Of Crop and Rotate)
Results
3
CropViewDemo issues
Sort by
recently updated
recently updated
newest added
裁剪框旋转后重置了,想要旋转后的裁剪框按旋转前操作的区域去缩放 如何处理呢
原来是获取到图片宽高不对,导致缩放比例也不对,只要把getDrawable改成getBitmap就行了,至于为啥不能获取到正确宽高就不知道了,有了解的可以解解惑 private float calcScale(int viewWidth, int viewHeight, float angle) { mImgWidth = getBitmap().getWidth(); mImgHeight = getBitmap().getHeight(); if (mImgWidth