public static enum ImageHeaderParser.ImageType extends Enum<ImageHeaderParser.ImageType>
Enum Constant and Description |
---|
GIF |
JPEG |
PNG
PNG type without alpha.
|
PNG_A
PNG type with alpha.
|
RAW |
UNKNOWN
Unrecognized type.
|
WEBP
WebP type without alpha.
|
WEBP_A
WebP type with alpha.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasAlpha() |
static ImageHeaderParser.ImageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageHeaderParser.ImageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageHeaderParser.ImageType GIF
public static final ImageHeaderParser.ImageType JPEG
public static final ImageHeaderParser.ImageType RAW
public static final ImageHeaderParser.ImageType PNG_A
public static final ImageHeaderParser.ImageType PNG
public static final ImageHeaderParser.ImageType WEBP_A
public static final ImageHeaderParser.ImageType WEBP
public static final ImageHeaderParser.ImageType UNKNOWN
public static ImageHeaderParser.ImageType[] values()
for (ImageHeaderParser.ImageType c : ImageHeaderParser.ImageType.values()) System.out.println(c);
public static ImageHeaderParser.ImageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean hasAlpha()