public class SetCMYKColorStroke extends SetColorOperator
Class representing K operator (set CMYK color for stroking operations).
Constructor and Description |
---|
SetCMYKColorStroke(double c,
double m,
double y,
double k)
Initializes operator.
|
SetCMYKColorStroke(int index,
com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
|
double |
getC()
Gets or sets the cyan component.
|
Color |
getColor()
Returns the RGB color
|
double |
getK()
Gets or sets the black component.
|
double |
getM()
Gets or sets the magenta component.
|
void |
getRGBColor(double[] cmyk,
double[] rgbOut) |
double |
getY()
Gets or sets the yellow component.
|
void |
setC(double value)
Gets or sets the cyan component.
|
void |
setK(double value)
Gets or sets the black component.
|
void |
setM(double value)
Gets or sets the magenta component.
|
void |
setY(double value)
Gets or sets the yellow component.
|
equals, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString, toString, valueEquals
public SetCMYKColorStroke(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetCMYKColorStroke(double c, double m, double y, double k)
Initializes operator.
c
- The level of cyan from 0.0 to 1.0m
- The level of magenta from 0.0 to 1.0y
- The level of yellow from 0.0 to 1.0k
- The level of black from 0.0 to 1.0public Color getColor()
Returns the RGB color
getColor
in class SetColorOperator
public final double getC()
Gets or sets the cyan component.
public final void setC(double value)
Gets or sets the cyan component.
value
- doable valuepublic final double getM()
Gets or sets the magenta component.
public final void setM(double value)
Gets or sets the magenta component.
value
- doable valuepublic final double getY()
Gets or sets the yellow component.
public final void setY(double value)
Gets or sets the yellow component.
value
- doable valuepublic final double getK()
Gets or sets the black component.
public final void setK(double value)
Gets or sets the black component.
value
- doable valuepublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
public void getRGBColor(double[] cmyk, double[] rgbOut)
Copyright © 2023 Aspose. All Rights Reserved.