public static enum HemfPlusImage.EmfPlusPixelFormat extends java.lang.Enum<HemfPlusImage.EmfPlusPixelFormat>
Enum Constant and Description |
---|
ARGB_32BPP |
ARGB_64BPP |
ARGB1555_16BPP |
GRAYSCALE_16BPP |
INDEXED_1BPP |
INDEXED_4BPP |
INDEXED_8BPP |
PARGB_32BPP |
PARGB_64BPP |
RGB_24BPP |
RGB_32BPP |
RGB_48BPP |
RGB555_16BPP |
RGB565_16BPP |
UNDEFINED |
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
int |
getBitsPerPixel()
The total number of bits per pixel.
(每个像素的总位数。)
|
int |
getGDIEnumIndex()
The pixel format enumeration index.
(像素格式枚举索引。)
|
boolean |
isAlpha()
If set, the pixel format includes an alpha transparency component.
(如果设置,像素格式包括一个 alpha 透明度组件。)
|
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.
(如果设置,则像素格式为“规范”,这意味着每个像素支持 32 位,颜色分量为 24 位,Alpha 通道为 8 位。)
|
boolean |
isExtendedColors()
If set, the pixel format supports extended colors in 16-bits per channel.
(如果设置,像素格式支持每通道 16 位的扩展颜色。)
|
boolean |
isGDISupported()
If set, the pixel format is supported in Windows GDI.
(如果设置,则 Windows GDI 支持像素格式。)
|
boolean |
isPaletteIndexed()
If set, the pixel values are indexes into a palette.
(如果设置,像素值是调色板的索引。)
|
boolean |
isPreMultiplied()
If set, each color component in the pixel has been premultiplied by the pixel's alpha transparency value.
(如果设置,则像素中的每个颜色分量都已预乘以像素的 Alpha 透明度值。)
|
static HemfPlusImage.EmfPlusPixelFormat |
valueOf(int id) |
static HemfPlusImage.EmfPlusPixelFormat |
valueOf(java.lang.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.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final HemfPlusImage.EmfPlusPixelFormat UNDEFINED
public static final HemfPlusImage.EmfPlusPixelFormat INDEXED_1BPP
public static final HemfPlusImage.EmfPlusPixelFormat INDEXED_4BPP
public static final HemfPlusImage.EmfPlusPixelFormat INDEXED_8BPP
public static final HemfPlusImage.EmfPlusPixelFormat GRAYSCALE_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB555_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB565_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat ARGB1555_16BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB_24BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB_32BPP
public static final HemfPlusImage.EmfPlusPixelFormat ARGB_32BPP
public static final HemfPlusImage.EmfPlusPixelFormat PARGB_32BPP
public static final HemfPlusImage.EmfPlusPixelFormat RGB_48BPP
public static final HemfPlusImage.EmfPlusPixelFormat ARGB_64BPP
public static final HemfPlusImage.EmfPlusPixelFormat PARGB_64BPP
public static HemfPlusImage.EmfPlusPixelFormat[] values()
for (HemfPlusImage.EmfPlusPixelFormat c : HemfPlusImage.EmfPlusPixelFormat.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (HemfPlusImage.EmfPlusPixelFormat c : HemfPlusImage.EmfPlusPixelFormat.values()) System.out.println(c);)
public static HemfPlusImage.EmfPlusPixelFormat valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public static HemfPlusImage.EmfPlusPixelFormat valueOf(int id)
public int getGDIEnumIndex()
public int getBitsPerPixel()
public boolean isPaletteIndexed()
public boolean isGDISupported()
public boolean isAlpha()
public boolean isPreMultiplied()
public boolean isExtendedColors()
public boolean isCanonical()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.