public enum ImageFileFormat extends java.lang.Enum<ImageFileFormat>
Enum Constant and Description |
---|
BMP |
GIF |
JPEG |
PNG |
TIFF
Deprecated.
|
UNSUPPORTED |
WEBP |
XML_DRAWABLE |
Modifier and Type | Method and Description |
---|---|
Decoder |
getDecoder(int resourceId) |
Decoder |
getDecoder(android.net.Uri uri) |
java.lang.String |
getMimeType() |
static ImageFileFormat |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ImageFileFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageFileFormat UNSUPPORTED
public static final ImageFileFormat GIF
public static final ImageFileFormat BMP
@Deprecated public static final ImageFileFormat TIFF
public static final ImageFileFormat PNG
public static final ImageFileFormat JPEG
public static final ImageFileFormat WEBP
public static final ImageFileFormat XML_DRAWABLE
public static ImageFileFormat[] values()
for (ImageFileFormat c : ImageFileFormat.values()) System.out.println(c);
public static ImageFileFormat 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 nullpublic Decoder getDecoder(int resourceId)
public Decoder getDecoder(android.net.Uri uri)
public java.lang.String getMimeType()