public class SetColor extends BasicSetColorOperator
Represents class for sc operator (set color for non-stroking 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 color 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()
Returns string representation of color.
|
getB, getC, getColorArray, getG, getGrey, getK, getM, getR, getYgetCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toStringpublic 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 color 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 SetColorOperatorpublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Copyright © 2022 Aspose. All Rights Reserved.