ColorantCmyk

Inheritance: java.lang.Object, com.aspose.imaging.xmp.types.XmpTypeBase, com.aspose.imaging.xmp.types.complex.ComplexTypeBase, com.aspose.imaging.xmp.types.complex.colorant.ColorantBase

public final class ColorantCmyk extends ColorantBase

Represents CMYK Colorant.

Constructors

ConstructorDescription
ColorantCmyk()Initializes a new instance of the ColorantCmyk class.
ColorantCmyk(float black, float cyan, float magenta, float yellow)Initializes a new instance of the ColorantCmyk class.

Fields

FieldDescription
COLOR_VALUE_MAXColor max value in CMYK colorant.
COLOR_VALUE_MINColor min value in CMYK colorant.

Methods

MethodDescription
getBlack()Gets or sets the black component value.
setBlack(float value)Gets or sets the black component value.
getCyan()Gets or sets the cyan component value.
setCyan(float value)Gets or sets the cyan component value.
getMagenta()Gets or sets the magenta component value.
setMagenta(float value)Gets or sets the magenta component value.
getYellow()Gets or sets the yellow component value.
setYellow(float value)Gets or sets the yellow component value.
getXmpRepresentation()Gets the string contained value in XMP format.

ColorantCmyk()

public ColorantCmyk()

Initializes a new instance of the ColorantCmyk class.

ColorantCmyk(float black, float cyan, float magenta, float yellow)

public ColorantCmyk(float black, float cyan, float magenta, float yellow)

Initializes a new instance of the ColorantCmyk class.

Parameters:

ParameterTypeDescription
blackfloatThe black component value.
cyanfloatThe cyan color component value.
magentafloatThe magenta component value.
yellowfloatThe yellow component value.

COLOR_VALUE_MAX

public static final float COLOR_VALUE_MAX

Color max value in CMYK colorant.

COLOR_VALUE_MIN

public static final float COLOR_VALUE_MIN

Color min value in CMYK colorant.

getBlack()

public float getBlack()

Gets or sets the black component value.

Value: The black component value.

Returns: float

setBlack(float value)

public void setBlack(float value)

Gets or sets the black component value.

Value: The black component value.

Parameters:

ParameterTypeDescription
valuefloat

getCyan()

public float getCyan()

Gets or sets the cyan component value.

Value: The cyan component value.

Returns: float

setCyan(float value)

public void setCyan(float value)

Gets or sets the cyan component value.

Value: The cyan component value.

Parameters:

ParameterTypeDescription
valuefloat

getMagenta()

public float getMagenta()

Gets or sets the magenta component value.

Value: The magenta component value.

Returns: float

setMagenta(float value)

public void setMagenta(float value)

Gets or sets the magenta component value.

Value: The magenta component value.

Parameters:

ParameterTypeDescription
valuefloat

getYellow()

public float getYellow()

Gets or sets the yellow component value.

Value: The yellow component value.

Returns: float

setYellow(float value)

public void setYellow(float value)

Gets or sets the yellow component value.

Value: The yellow component value.

Parameters:

ParameterTypeDescription
valuefloat

getXmpRepresentation()

public String getXmpRepresentation()

Gets the string contained value in XMP format.

Returns: java.lang.String - Returns the string contained value in XMP format.