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
| Constructor | Description |
|---|---|
| SetCMYKColor | Initializes operator. |
| SetCMYKColor |
Methods
| Method | Description |
|---|---|
| accept | Accepts visitor object to process operator. |
| getC | Gets or sets the cyan component. |
| getColor | Returns color. |
| getK | Gets or sets the black component. |
| getM | Gets or sets the magenta component. |
| getRGBColor | |
| getY | Gets or sets the yellow component. |
| setC | Gets or sets the cyan component. |
| setK | Gets or sets the black component. |
| setM | Gets or sets the magenta component. |
| setY | Gets or sets the yellow component. |
SetCMYKColor
public SetCMYKColor(double c, double m, double y, double k)
Initializes operator.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| c | The level of cyan from 0.0 to 1.0 | |
| m | The level of magenta from 0.0 to 1.0 | |
| y | The level of yellow from 0.0 to 1.0 | |
| k | The 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:
| Parameter | Type | Description |
|---|---|---|
| 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:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |
setK
public final void setK(double value)
Gets or sets the black component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |
setM
public final void setM(double value)
Gets or sets the magenta component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |
setY
public final void setY(double value)
Gets or sets the yellow component.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |