|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ImageScaleType>
com.nostra13.universalimageloader.core.assist.ImageScaleType
public enum ImageScaleType
Type of image scaling during decoding.
Enum Constant Summary | |
---|---|
EXACTLY
Image will scaled-down exactly to target size (scaled width or height or both will be equal to target size; depends on ImageView's scale type). |
|
EXACTLY_STRETCHED
Image will scaled exactly to target size (scaled width or height or both will be equal to target size; depends on ImageView's scale type). |
|
IN_SAMPLE_INT
Image will be subsampled in an integer number of times (1, 2, 3, ...). |
|
IN_SAMPLE_POWER_OF_2
Image will be reduces 2-fold until next reduce step make image smaller target size. |
|
NONE
Image won't be scaled |
|
NONE_SAFE
Image will be scaled down only if image size is greater than maximum acceptable texture size. |
Method Summary | |
---|---|
static ImageScaleType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ImageScaleType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ImageScaleType NONE
public static final ImageScaleType NONE_SAFE
public static final ImageScaleType IN_SAMPLE_POWER_OF_2
BitmapFactory.Options.inSampleSize
public static final ImageScaleType IN_SAMPLE_INT
BitmapFactory.Options.inSampleSize
public static final ImageScaleType EXACTLY
Bitmap.createBitmap(...)
.
public static final ImageScaleType EXACTLY_STRETCHED
Bitmap.createBitmap(...)
.
Method Detail |
---|
public static ImageScaleType[] values()
for (ImageScaleType c : ImageScaleType.values()) System.out.println(c);
public static ImageScaleType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |