docs: private static Bitmap crop(Bitmap srcBmp, View canvasView, int downsampling) {
          float scale = 1f / downsampling;
          return Bitmap.createBitmap(
                  srcBmp,
                  (int) Math.floor((ViewCompat.getX(canvasView)) * scale),
                  (int) Math.floor((ViewCompat.getY(canvasView)) * scale),
                  (int) Math.floor((canvasView.getWidth()) * scale),
                  (int) Math.floor((canvasView.getHeight()) * scale)
          );
      }