Package 

Enum CropImageView.RequestSizeOptions

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      RESIZE_EXACT

      Resize the image to fit exactly in the given width/height.<br></br> This resize method does NOT preserve aspect ratio.<br></br> If the image is smaller than the requested size it will enlarge it.

      RESIZE_FIT

      Resize the image uniformly (maintain the image's aspect ratio) to fit in the given width/height.<br></br> The largest dimension will be equals to the requested and the second dimension will be smaller.<br></br> If the image is smaller than the requested size it will enlarge it.

      RESIZE_INSIDE

      Resize the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding requested dimension.<br></br> If the image is smaller than the requested size it will NOT change.

      SAMPLING

      Only sample the image during loading (if image set using URI) so the smallest of the image dimensions will be between the requested size and x2 requested size.<br></br> NOTE: resulting image will not be exactly requested width/height see: Loading Large Bitmaps Efficiently.

      NONE

      No resize/sampling is done unless required for memory management (OOM).

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait