SetCMYKColor

Inheritance: java.lang.Object, com.aspose.pdf.Operator com.aspose.pdf.operators.SetColorOperator com.aspose.pdf.operators.SetCMYKColor, com.aspose.pdf.Operator, com.aspose.pdf.operators.SetColorOperator com.aspose.pdf.operators.SetCMYKColor, com.aspose.pdf.operators.SetColorOperator, com.aspose.pdf.operators.SetCMYKColor

public class SetCMYKColor extends SetColorOperator

Class representing k operator (set CMYK color for non-stroking operations).

Constructors

ConstructorDescription
SetCMYKColorInitializes operator.
SetCMYKColor

Methods

MethodDescription
acceptAccepts visitor object to process operator.
getCGets or sets the cyan component.
getColorReturns color.
getKGets or sets the black component.
getMGets or sets the magenta component.
getRGBColor
getYGets or sets the yellow component.
setCGets or sets the cyan component.
setKGets or sets the black component.
setMGets or sets the magenta component.
setYGets or sets the yellow component.

SetCMYKColor

public SetCMYKColor(double c, double m, double y, double k)

Initializes operator.

Parameters:

ParameterTypeDescription
cThe level of cyan from 0.0 to 1.0
mThe level of magenta from 0.0 to 1.0
yThe level of yellow from 0.0 to 1.0
kThe level of black from 0.0 to 1.0

SetCMYKColor

accept

Accepts visitor object to process operator.

getC

public final double getC()

Gets or sets the cyan component.

Returns: doable value

getColor

public Color getColor()

Returns color.

Returns: Color specified by operator.

getK

public final double getK()

Gets or sets the black component.

Returns: doable value

getM

public final double getM()

Gets or sets the magenta component.

Returns: doable value

getRGBColor

public void getRGBColor(double[] cmyk, double[] rgbOut)

Parameters:

ParameterTypeDescription
cmyk
rgbOut

getY

public final double getY()

Gets or sets the yellow component.

Returns: doable value

setC

public final void setC(double value)

Gets or sets the cyan component.

Parameters:

ParameterTypeDescription
valuedoable value

setK

public final void setK(double value)

Gets or sets the black component.

Parameters:

ParameterTypeDescription
valuedoable value

setM

public final void setM(double value)

Gets or sets the magenta component.

Parameters:

ParameterTypeDescription
valuedoable value

setY

public final void setY(double value)

Gets or sets the yellow component.

Parameters:

ParameterTypeDescription
valuedoable value