public static enum CropImageView.RequestSizeOptions extends java.lang.Enum<CropImageView.RequestSizeOptions>
| Enum Constant and Description |
|---|
NONE
No resize/sampling is done unless required for memory management (OOM).
|
RESIZE_EXACT
Resize the image to fit exactly in the given width/height.
This resize method does NOT preserve aspect ratio. 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.
The largest dimension will be equals to the requested and the second dimension will be smaller. 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.
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.
NOTE: resulting image will not be exactly requested width/height see: Loading Large Bitmaps Efficiently. |
| Modifier and Type | Method and Description |
|---|---|
static CropImageView.RequestSizeOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CropImageView.RequestSizeOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CropImageView.RequestSizeOptions NONE
public static final CropImageView.RequestSizeOptions SAMPLING
public static final CropImageView.RequestSizeOptions RESIZE_INSIDE
public static final CropImageView.RequestSizeOptions RESIZE_FIT
public static final CropImageView.RequestSizeOptions RESIZE_EXACT
public static CropImageView.RequestSizeOptions[] values()
for (CropImageView.RequestSizeOptions c : CropImageView.RequestSizeOptions.values()) System.out.println(c);
public static CropImageView.RequestSizeOptions valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null