public class SetRGBColor extends SetColorOperator
Class representing rg operator (set RGB color for non-stroknig operators).
Constructor and Description |
---|
SetRGBColor(Color color)
Initializes operator with color.
|
SetRGBColor(double r,
double g,
double b)
Constructor for writing program.
|
SetRGBColor(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.
|
void |
getCMYKColor(double[] rgb,
double[] cmykOut) |
Color |
getColor()
Returns color specified by operator.
|
String |
toString()
Returns text representation of the operator.
|
clear, getCommand, getCommandName, getIndex, getParameters, getTrailerable, isTextShowOperator, reset, setIndex, toString
public SetRGBColor(int index, com.aspose.pdf.engine.commondata.pagecontent.operators.commands.ICommand command)
Constructor for operator class.
index
- Index of operator.command
- Operator command.public SetRGBColor(double r, double g, double b)
Constructor for writing program.
r
- The level of red from 0.0 to 1.0g
- The level of green from 0.0 to 1.0b
- The level of blue from 0.0 to 1.0public SetRGBColor(Color color)
Initializes operator with color.
color
- Specfied color.public Color getColor()
Returns color specified by operator.
getColor
in class SetColorOperator
public void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
public String toString()
Returns text representation of the operator.
public void getCMYKColor(double[] rgb, double[] cmykOut)