code: @SuppressWarnings("deprecation") // We'll clean it up once deprecated method is removed
      public static Bitmap crop(Drawable drawable, GestureController controller) {
          controller.stopAllAnimations();
          controller.updateState(); // Applying state restrictions
          return crop(drawable, controller.getState(), controller.getSettings());
      }
docs: Crops image drawable into bitmap according to current image position.
  
  @param drawable Image drawable
  @param controller Image controller
  @return Cropped image part