public BitmapResult getCroppedBitmap() throws OutOfMemoryError {
        if (isGestureInProgess) {
            return BitmapResult.GestureFailure();
        }

        try {
            return BitmapResult.success(mImageView.cropBitmap());
        } catch (OutOfMemoryError e) {
            throw e;
        }
    }
Crop bitmap in sync
@return {@link BitmapResult} may contain null bitmap if it's not a success. If this method is called when
user is still using the gesture (scrolling, panning, etc), it would return result with state FAILURE_GESTURE_IN_PROCESS
@throws OutOfMemoryError
nocropper/src/main/java/com/fenchtose/nocropper/CropperView.java