Package com.drew.metadata.bmp
Enum BmpHeaderDirectory.Compression
- java.lang.Object
-
- java.lang.Enum<BmpHeaderDirectory.Compression>
-
- com.drew.metadata.bmp.BmpHeaderDirectory.Compression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BmpHeaderDirectory.Compression>
- Enclosing class:
- BmpHeaderDirectory
public static enum BmpHeaderDirectory.Compression extends java.lang.Enum<BmpHeaderDirectory.Compression>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BI_ALPHABITFIELDS6 = RGBA bit fieldsBI_BITFIELDS3 = Bit fields (not OS22XBITMAPHEADER (size 64))BI_CMYK11 = CMYKBI_CMYKRLE413 = CMYK RLE-4BI_CMYKRLE812 = CMYK RLE-8BI_HUFFMAN_1D3 = Huffman 1D (if OS22XBITMAPHEADER (size 64))BI_JPEG4 = JPEG (not OS22XBITMAPHEADER (size 64))BI_PNG5 = PNGBI_RGB0 = NoneBI_RLE244 = RLE 24-bit/pixel (if OS22XBITMAPHEADER (size 64))BI_RLE42 = RLE 4-bit/pixelBI_RLE81 = RLE 8-bit/pixel
-
Field Summary
Fields Modifier and Type Field Description private intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateCompression(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()java.lang.StringtoString()static BmpHeaderDirectory.CompressiontypeOf(int value, int headerSize)static BmpHeaderDirectory.CompressiontypeOf(BmpHeaderDirectory directory)static BmpHeaderDirectory.CompressionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BmpHeaderDirectory.Compression[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BI_RGB
public static final BmpHeaderDirectory.Compression BI_RGB
0 = None
-
BI_RLE8
public static final BmpHeaderDirectory.Compression BI_RLE8
1 = RLE 8-bit/pixel
-
BI_RLE4
public static final BmpHeaderDirectory.Compression BI_RLE4
2 = RLE 4-bit/pixel
-
BI_BITFIELDS
public static final BmpHeaderDirectory.Compression BI_BITFIELDS
3 = Bit fields (not OS22XBITMAPHEADER (size 64))
-
BI_HUFFMAN_1D
public static final BmpHeaderDirectory.Compression BI_HUFFMAN_1D
3 = Huffman 1D (if OS22XBITMAPHEADER (size 64))
-
BI_JPEG
public static final BmpHeaderDirectory.Compression BI_JPEG
4 = JPEG (not OS22XBITMAPHEADER (size 64))
-
BI_RLE24
public static final BmpHeaderDirectory.Compression BI_RLE24
4 = RLE 24-bit/pixel (if OS22XBITMAPHEADER (size 64))
-
BI_PNG
public static final BmpHeaderDirectory.Compression BI_PNG
5 = PNG
-
BI_ALPHABITFIELDS
public static final BmpHeaderDirectory.Compression BI_ALPHABITFIELDS
6 = RGBA bit fields
-
BI_CMYK
public static final BmpHeaderDirectory.Compression BI_CMYK
11 = CMYK
-
BI_CMYKRLE8
public static final BmpHeaderDirectory.Compression BI_CMYKRLE8
12 = CMYK RLE-8
-
BI_CMYKRLE4
public static final BmpHeaderDirectory.Compression BI_CMYKRLE4
13 = CMYK RLE-4
-
-
Method Detail
-
values
public static BmpHeaderDirectory.Compression[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BmpHeaderDirectory.Compression c : BmpHeaderDirectory.Compression.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BmpHeaderDirectory.Compression valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getValue
public int getValue()
-
typeOf
public static BmpHeaderDirectory.Compression typeOf(BmpHeaderDirectory directory)
-
typeOf
public static BmpHeaderDirectory.Compression typeOf(int value, int headerSize)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<BmpHeaderDirectory.Compression>
-
-