|
|
@@ -425,7 +425,6 @@ public class CropOverlayView extends View {
|
|
|
* the image being cropped.
|
|
|
*/
|
|
|
private void initCropWindow() {
|
|
|
-
|
|
|
float leftLimit = Math.max(BitmapUtils.getRectLeft(mBoundsPoints), 0);
|
|
|
float topLimit = Math.max(BitmapUtils.getRectTop(mBoundsPoints), 0);
|
|
|
float rightLimit = Math.min(BitmapUtils.getRectRight(mBoundsPoints), getWidth());
|
|
|
@@ -599,9 +598,13 @@ public class CropOverlayView extends View {
|
|
|
RectF rect = mCropWindowHandler.getRect();
|
|
|
|
|
|
float left = Math.max(BitmapUtils.getRectLeft(mBoundsPoints), 0);
|
|
|
- float top = Math.max(BitmapUtils.getRectTop(mBoundsPoints), 0);
|
|
|
+ // 自定义裁剪-顶部无间隙
|
|
|
+ float top = 0;
|
|
|
+ //float top = Math.max(BitmapUtils.getRectTop(mBoundsPoints), 0);
|
|
|
float right = Math.min(BitmapUtils.getRectRight(mBoundsPoints), getWidth());
|
|
|
- float bottom = Math.min(BitmapUtils.getRectBottom(mBoundsPoints), getHeight());
|
|
|
+ // 自定义裁剪-底部无间隙
|
|
|
+ float bottom = getHeight();
|
|
|
+ //float bottom = Math.min(BitmapUtils.getRectBottom(mBoundsPoints), getHeight());
|
|
|
|
|
|
if (mCropShape == CropImageView.CropShape.RECTANGLE) {
|
|
|
if (!isNonStraightAngleRotated() || Build.VERSION.SDK_INT <= 17) {
|