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
Constructor | Description |
---|---|
SetCMYKColor(double c, double m, double y, double k) | Initializes operator. |
SetCMYKColor(int index, ICommand command) |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
c | double | The level of cyan from 0.0 to 1.0 |
m | double | The level of magenta from 0.0 to 1.0 |
y | double | The level of yellow from 0.0 to 1.0 |
k | double | The level of black from 0.0 to 1.0 |
SetCMYKColor(int index, ICommand command)
public SetCMYKColor(int index, ICommand command)
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | |
command | ICommand |
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:
Parameter | Type | Description |
---|---|---|
value | double | doable 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:
Parameter | Type | Description |
---|---|---|
value | double | doable 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:
Parameter | Type | Description |
---|---|---|
value | double | doable 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:
Parameter | Type | Description |
---|---|---|
value | double | doable value |
accept(IOperatorSelector visitor)
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Parameters:
Parameter | Type | Description |
---|---|---|
visitor | IOperatorSelector | Visitor object. |
getRGBColor(double[] cmyk, double[] rgbOut)
public void getRGBColor(double[] cmyk, double[] rgbOut)
Parameters:
Parameter | Type | Description |
---|---|---|
cmyk | double[] | |
rgbOut | double[] |