Enum 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>
- Enclosing class:
- HemfPlusImage
public static enum HemfPlusImage.EmfPlusPixelFormat extends Enum<HemfPlusImage.EmfPlusPixelFormat>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARGB_32BPPARGB_64BPPARGB1555_16BPPGRAYSCALE_16BPPINDEXED_1BPPINDEXED_4BPPINDEXED_8BPPPARGB_32BPPPARGB_64BPPRGB_24BPPRGB_32BPPRGB_48BPPRGB555_16BPPRGB565_16BPPUNDEFINED
-
Field Summary
Fields Modifier and Type Field Description intid
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBitsPerPixel()The total number of bits per pixel.intgetGDIEnumIndex()The pixel format enumeration index.booleanisAlpha()If set, the pixel format includes an alpha transparency component.booleanisCanonical()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.booleanisExtendedColors()If set, the pixel format supports extended colors in 16-bits per channel.booleanisGDISupported()If set, the pixel format is supported in Windows GDI.booleanisPaletteIndexed()If set, the pixel values are indexes into a palette.booleanisPreMultiplied()If set, each color component in the pixel has been premultiplied by the pixel's alpha transparency value.static HemfPlusImage.EmfPlusPixelFormatvalueOf(int id)Returns the enum constant of this type with the specified name.static HemfPlusImage.EmfPlusPixelFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static HemfPlusImage.EmfPlusPixelFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNDEFINED
public static final HemfPlusImage.EmfPlusPixelFormat UNDEFINED
-
INDEXED_1BPP
public static final HemfPlusImage.EmfPlusPixelFormat INDEXED_1BPP
-
INDEXED_4BPP
public static final HemfPlusImage.EmfPlusPixelFormat INDEXED_4BPP
-
INDEXED_8BPP
public static final HemfPlusImage.EmfPlusPixelFormat INDEXED_8BPP
-
GRAYSCALE_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat GRAYSCALE_16BPP
-
RGB555_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB555_16BPP
-
RGB565_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB565_16BPP
-
ARGB1555_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat ARGB1555_16BPP
-
RGB_24BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB_24BPP
-
RGB_32BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB_32BPP
-
ARGB_32BPP
public static final HemfPlusImage.EmfPlusPixelFormat ARGB_32BPP
-
PARGB_32BPP
public static final HemfPlusImage.EmfPlusPixelFormat PARGB_32BPP
-
RGB_48BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB_48BPP
-
ARGB_64BPP
public static final HemfPlusImage.EmfPlusPixelFormat ARGB_64BPP
-
PARGB_64BPP
public static final HemfPlusImage.EmfPlusPixelFormat PARGB_64BPP
-
-
Method Detail
-
values
public static HemfPlusImage.EmfPlusPixelFormat[] 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 (HemfPlusImage.EmfPlusPixelFormat c : HemfPlusImage.EmfPlusPixelFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HemfPlusImage.EmfPlusPixelFormat valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
public static HemfPlusImage.EmfPlusPixelFormat valueOf(int id)
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:
id- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type 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.
-
-