public enum BitmapCompression extends Enum<BitmapCompression>
Specifies different bitmap compression methods.
Enum Constant and Description |
---|
AlphaBitfields
RGBA bit fields.
|
Bitfields
RGB bit fields.
|
Jpeg
JPEG compression.
|
Png
PNG compression.
|
Rgb
No compression.
|
Rle4
RLE 4-bit/pixel compression.
|
Rle8
RLE 8-bit/pixel compression.
|
Modifier and Type | Method and Description |
---|---|
int |
getType()
Gets the value that represents the type of the enum.
|
static BitmapCompression |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BitmapCompression[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BitmapCompression Rgb
No compression.
public static final BitmapCompression Rle8
RLE 8-bit/pixel compression. Can be used only with 8-bit/pixel bitmaps.
public static final BitmapCompression Rle4
RLE 4-bit/pixel compression. Can be used only with 4-bit/pixel bitmaps.
public static final BitmapCompression Bitfields
RGB bit fields. Can be used only with 16 and 32-bit/pixel bitmaps.
public static final BitmapCompression Jpeg
JPEG compression. The bitmap contains a JPEG image.
public static final BitmapCompression Png
PNG compression. The bitmap contains a PNG image.
public static final BitmapCompression AlphaBitfields
RGBA bit fields. Can be used only with 16 and 32-bit/pixel bitmaps.
public static BitmapCompression[] values()
for (BitmapCompression c : BitmapCompression.values()) System.out.println(c);
public static BitmapCompression 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 int getType()