ColorType

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class ColorType extends System.Enum

Specifies color type of elements on page.

Fields

FieldDescription
RgbRGB color type.
GrayscaleGrayscale color type.
BlackAndWhiteBlack and white color type.
UndefinedUndefined color type value.

Methods

MethodDescription
getName(int value)Returns String name for the enum value.

Rgb

public static final int Rgb

RGB color type.

Grayscale

public static final int Grayscale

Grayscale color type.

BlackAndWhite

public static final int BlackAndWhite

Black and white color type.

Undefined

public static final int Undefined

Undefined color type value.

getName(int value)

public static String getName(int value)

Returns String name for the enum value.


Example: String s = ColorType.getName(ColorType.Grayscale);

Parameters:

ParameterTypeDescription
valueintEnum value

Returns: java.lang.String - Value’s name