SetCMYKColor

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

public class SetCMYKColor extends SetColorOperator

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

Constructors

ConstructorDescription
SetCMYKColor(double c, double m, double y, double k)Initializes operator.
SetCMYKColor(int index, ICommand command)

Methods

MethodDescription
getColor()Returns color.
getC()Gets or sets the cyan component.
setC(double value)Gets or sets the cyan component.
getM()Gets or sets the magenta component.
setM(double value)Gets or sets the magenta component.
getY()Gets or sets the yellow component.
setY(double value)Gets or sets the yellow component.
getK()Gets or sets the black component.
setK(double value)Gets or sets the black component.
accept(IOperatorSelector visitor)Accepts visitor object to process operator.
getRGBColor(double[] cmyk, double[] rgbOut)

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

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

Initializes operator.

Parameters:

ParameterTypeDescription
cdoubleThe level of cyan from 0.0 to 1.0
mdoubleThe level of magenta from 0.0 to 1.0
ydoubleThe level of yellow from 0.0 to 1.0
kdoubleThe level of black from 0.0 to 1.0

SetCMYKColor(int index, ICommand command)

public SetCMYKColor(int index, ICommand command)

Parameters:

ParameterTypeDescription
indexint
commandICommand

getColor()

public Color getColor()

Returns color.

Returns: Color - Color specified by operator.

getC()

public final double getC()

Gets or sets the cyan component.

Returns: double - doable value

setC(double value)

public final void setC(double value)

Gets or sets the cyan component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getM()

public final double getM()

Gets or sets the magenta component.

Returns: double - doable value

setM(double value)

public final void setM(double value)

Gets or sets the magenta component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getY()

public final double getY()

Gets or sets the yellow component.

Returns: double - doable value

setY(double value)

public final void setY(double value)

Gets or sets the yellow component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

getK()

public final double getK()

Gets or sets the black component.

Returns: double - doable value

setK(double value)

public final void setK(double value)

Gets or sets the black component.

Parameters:

ParameterTypeDescription
valuedoubledoable value

accept(IOperatorSelector visitor)

public void accept(IOperatorSelector visitor)

Accepts visitor object to process operator.

Parameters:

ParameterTypeDescription
visitorIOperatorSelectorVisitor object.

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

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

Parameters:

ParameterTypeDescription
cmykdouble[]
rgbOutdouble[]