|
||||||||||
| 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 | |
|---|---|
EXACT
Deprecated. Will be deleted in the future. Use IN_SAMPLE_INT. |
|
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. |
|
IN_SAMPLE_POWER_OF_2
Image will be reduces 2-fold until next reduce step make image smaller target size. |
|
POWER_OF_2
Deprecated. Will be deleted in the future. Use IN_SAMPLE_POWER_OF_2. |
|
| 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 |
|---|
@Deprecated public static final ImageScaleType POWER_OF_2
IN_SAMPLE_POWER_OF_2.IN_SAMPLE_POWER_OF_2
public static final ImageScaleType IN_SAMPLE_POWER_OF_2
BitmapFactory.Options#inSampleSize
@Deprecated public static final ImageScaleType EXACT
IN_SAMPLE_INT.IN_SAMPLE_INT
public static final ImageScaleType IN_SAMPLE_INT
BitmapFactory.Options#inSampleSize
public static final ImageScaleType EXACTLY
Bitmap.createScaledBitmap(...). So this scale type
requires more memory for creation of result Bitmap, but then save memory by keeping in memory smaller Bitmap
(comparing with IN_SAMPLE... scale types).
public static final ImageScaleType EXACTLY_STRETCHED
Bitmap.createScaledBitmap(...). So this scale type
requires more memory for creation of result Bitmap, but then save memory by keeping in memory smaller Bitmap
(comparing with IN_SAMPLE... scale types).
| 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 | |||||||||