public Rect getWholeImageRect() {
    int loadedSampleSize = mLoadedSampleSize;
    Bitmap bitmap = mBitmap;
    if (bitmap == null) {
      return null;
    }

    int orgWidth = bitmap.getWidth() * loadedSampleSize;
    int orgHeight = bitmap.getHeight() * loadedSampleSize;
    return new Rect(0, 0, orgWidth, orgHeight);
  }
Gets the source Bitmap's dimensions. This represents the largest possible crop rectangle.

@return a Rect instance dimensions of the source Bitmap
core/src/main/java/com/theartofdev/edmodo/cropper/CropImageView.java