public CropInfo rotate90(int bitmapWidth) {

        // Bitmap is already rotated by 90 degrees clockwise. So the crop info corresponds to that.
        // We need to project this crop info for the bitmap which was not rotated by 90 degrees.
        // Project crop info for 90 degrees anticlockwise

        //noinspection SuspiciousNameCombination
        return new CropInfo(
                y,
                bitmapWidth - (x + width),
                height,
                width,
                addPadding,
                verticalPadding,
                horizontalPadding,
                paddingColor
        );
    }
Get CropInfo if you want to crop un-rotated/original bitmap.
Note: This can be used only if the bitmap is rotated by 90 degrees clockwise. For 180, 270, use
{@link #rotate90XTimes(int, int, int)}.

@param bitmapWidth width of the rotated bitmap, ie. height of the original bitmap
@return projected {@link CropInfo} which can be used to crop the original image with same bounds.
nocropper/src/main/java/com/fenchtose/nocropper/CropInfo.java