Enum Class HemfPlusImage.EmfPlusPixelFormat
java.lang.Object
java.lang.Enum<HemfPlusImage.EmfPlusPixelFormat>
org.apache.poi.hemf.record.emfplus.HemfPlusImage.EmfPlusPixelFormat
- All Implemented Interfaces:
Serializable,Comparable<HemfPlusImage.EmfPlusPixelFormat>,Constable
- Enclosing class:
- HemfPlusImage
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintThe total number of bits per pixel.intThe pixel format enumeration index.booleanisAlpha()If set, the pixel format includes an alpha transparency component.booleanIf set, the pixel format is "canonical", which means that 32 bits per pixel are supported, with 24-bits for color components and an 8-bit alpha channel.booleanIf set, the pixel format supports extended colors in 16-bits per channel.booleanIf set, the pixel format is supported in Windows GDI.booleanIf set, the pixel values are indexes into a palette.booleanIf set, each color component in the pixel has been premultiplied by the pixel's alpha transparency value.valueOf(int id) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static HemfPlusImage.EmfPlusPixelFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
-
INDEXED_1BPP
-
INDEXED_4BPP
-
INDEXED_8BPP
-
GRAYSCALE_16BPP
-
RGB555_16BPP
-
RGB565_16BPP
-
ARGB1555_16BPP
-
RGB_24BPP
-
RGB_32BPP
-
ARGB_32BPP
-
PARGB_32BPP
-
RGB_48BPP
-
ARGB_64BPP
-
PARGB_64BPP
-
-
Field Details
-
id
public final int id
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
id- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getGDIEnumIndex
public int getGDIEnumIndex()The pixel format enumeration index. -
getBitsPerPixel
public int getBitsPerPixel()The total number of bits per pixel. -
isPaletteIndexed
public boolean isPaletteIndexed()If set, the pixel values are indexes into a palette. If clear, the pixel values are actual colors. -
isGDISupported
public boolean isGDISupported()If set, the pixel format is supported in Windows GDI. If clear, the pixel format is not supported in Windows GDI. -
isAlpha
public boolean isAlpha()If set, the pixel format includes an alpha transparency component. If clear, the pixel format does not include a component that specifies transparency. -
isPreMultiplied
public boolean isPreMultiplied()If set, each color component in the pixel has been premultiplied by the pixel's alpha transparency value. If clear, each color component is multiplied by the pixel's alpha transparency value when the source pixel is blended with the destination pixel. -
isExtendedColors
public boolean isExtendedColors()If set, the pixel format supports extended colors in 16-bits per channel. If clear, extended colors are not supported. -
isCanonical
public boolean isCanonical()If set, the pixel format is "canonical", which means that 32 bits per pixel are supported, with 24-bits for color components and an 8-bit alpha channel. If clear, the pixel format is not canonical.
-