public enum ColorType extends Enum<ColorType>
Specifies color type of elements on page.
Enum Constant and Description |
---|
BlackAndWhite
Black and white color type.
|
Grayscale
Grayscale color type.
|
Rgb
RGB color type.
|
Undefined
Undefined color type value.
|
Modifier and Type | Method and Description |
---|---|
static ColorType |
getByValue(int value) |
static String |
getName(int value)
Returns String name for the enum value.
|
int |
getValue() |
static ColorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorType Rgb
RGB color type.
public static final ColorType Grayscale
Grayscale color type.
public static final ColorType BlackAndWhite
Black and white color type.
public static final ColorType Undefined
Undefined color type value.
public static ColorType[] values()
for (ColorType c : ColorType.values()) System.out.println(c);
public static ColorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
public static ColorType getByValue(int value)
public static String getName(int value)
Returns String name for the enum value.
String s = ColorType.getName(ColorType.Grayscale);
value
- Enum valueCopyright © 2025 Aspose. All Rights Reserved.