SetCMYKColorStroke

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

public class SetCMYKColorStroke extends SetColorOperator

Class representing K operator (set CMYK color for stroking operations).

Constructors

ConstructorDescription
SetCMYKColorStroke(int index, ICommand command)Constructor for operator class.
SetCMYKColorStroke(double c, double m, double y, double k)Initializes operator.

Methods

MethodDescription
getColor()Returns the RGB 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)

SetCMYKColorStroke(int index, ICommand command)

public SetCMYKColorStroke(int index, ICommand command)

Constructor for operator class.

Parameters:

ParameterTypeDescription
indexintIndex of operator.
commandICommandOperator command.

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

public SetCMYKColorStroke(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

getColor()

public Color getColor()

Returns the RGB 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[]