-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum CropImageView.RequestSizeOptions extends Enum<CropImageView.RequestSizeOptions>
Possible options for handling requested width/height for cropping.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RESIZE_EXACTResize 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_FITResize 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_INSIDEResize 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.
SAMPLINGOnly 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.
NONENo resize/sampling is done unless required for memory management (OOM).
-
Method Summary
Modifier and Type Method Description final StringgetName()final IntegergetOrdinal()-
-
Method Detail
-
getOrdinal
final Integer getOrdinal()
-
-
-
-