public static enum HwmfBitmapDib.Compression extends java.lang.Enum<HwmfBitmapDib.Compression>
Enum Constant and Description |
---|
BI_BITFIELDS
The bitmap is not compressed and the color table consists of three DWORD color masks that specify the red, green, and blue components, respectively, of each pixel.
|
BI_CMYK
The image is an uncompressed CMYK format.
|
BI_CMYKRLE4
A CMYK format that uses RLE compression for bitmaps with 4 bits per pixel.
|
BI_CMYKRLE8
A CMYK format that uses RLE compression for bitmaps with 8 bits per pixel.
|
BI_JPEG
The image is a JPEG image, as specified in [JFIF].
|
BI_PNG
The image is a PNG image, as specified in [RFC2083].
|
BI_RGB
The bitmap is in uncompressed red green blue (RGB) format that is not compressed and does not use color masks.
|
BI_RLE4
An RGB format that uses RLE compression for bitmaps with 4 bits per pixel.
|
BI_RLE8
An RGB format that uses run-length encoding (RLE) compression for bitmaps with 8 bits per pixel.
|
Modifier and Type | Method and Description |
---|---|
static HwmfBitmapDib.Compression |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static HwmfBitmapDib.Compression[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
public static final HwmfBitmapDib.Compression BI_RGB
public static final HwmfBitmapDib.Compression BI_RLE8
public static final HwmfBitmapDib.Compression BI_RLE4
public static final HwmfBitmapDib.Compression BI_BITFIELDS
public static final HwmfBitmapDib.Compression BI_JPEG
public static final HwmfBitmapDib.Compression BI_PNG
public static final HwmfBitmapDib.Compression BI_CMYK
public static final HwmfBitmapDib.Compression BI_CMYKRLE8
public static final HwmfBitmapDib.Compression BI_CMYKRLE4
public static HwmfBitmapDib.Compression[] values()
for (HwmfBitmapDib.Compression c : HwmfBitmapDib.Compression.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (HwmfBitmapDib.Compression c : HwmfBitmapDib.Compression.values()) System.out.println(c);)
public static HwmfBitmapDib.Compression 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 - 如果参数为空)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.