public class SetColor extends BasicSetColorOperator
Represents class for sc operator (set color for non-stroknig operations).
Constructor and Description |
---|
SetColor()
Initializes operator.
|
SetColor(double g)
Set color for stroking operators for DeviceGrey, CalGrey and Indexed color spaces.
|
SetColor(double[] color)
Constructor which allows to specify color components.
|
SetColor(double r,
double g,
double b)
Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
|
SetColor(double c,
double m,
double y,
double k)
Set color for non-stroking operator for CMYK colro space
|
SetColor(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.
|
Color |
getColor()
Not supported yet.
|
String |
toString()
String represenation.
|
getB, getC, getColorArray, getG, getGrey, getK, getM, getR, getY
clear, getCommand, getCommandName, getIndex, getParameters, getTrailerable, isTextShowOperator, reset, setIndex, toString
public SetColor()
Initializes operator.
public SetColor(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetColor(double g)
Set color for stroking operators for DeviceGrey, CalGrey and Indexed color spaces.
g
- Color value.public SetColor(double r, double g, double b)
Set color for stroking operator for DeviceRGB, CalRGB, and Lab color spaces
r
- Red component.g
- Green component.b
- Blue component.public SetColor(double c, double m, double y, double k)
Set color for non-stroking operator for CMYK colro space
c
- Cyan component.m
- Magenta component.y
- Yellow component.k
- Black component.public SetColor(double[] color)
Constructor which allows to specify color components.
color
- Array of color components.public Color getColor()
Returns color specified by the operator.
getColor
in class SetColorOperator
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.