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.
|
double |
getB()
Gets or sets the blue component.
|
double |
getC()
Gets or sets the cyan component.
|
Color |
getColor()
Not supported yet.
|
double |
getG()
Gets or sets the green component.
|
double |
getK()
Gets or sets the black component.
|
double |
getM()
Gets or sets the magenta component.
|
double |
getR()
Gets or sets the red component.
|
double |
getY()
Gets or sets the yellow component.
|
void |
setB(double value)
Gets or sets the blue component.
|
void |
setC(double value)
Gets or sets the cyan component.
|
void |
setG(double value)
Gets or sets the green component.
|
void |
setK(double value)
Gets or sets the black component.
|
void |
setM(double value)
Gets or sets the magenta component.
|
void |
setR(double value)
Gets or sets the red component.
|
void |
setY(double value)
Gets or sets the yellow component.
|
String |
toString()
Returns string representation of color.
|
getColorArray, getGrey
equals, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString, valueEquals
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 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 SetColorOperator
public final double getC()
Gets or sets the cyan component.
getC
in class BasicSetColorOperator
public final void setC(double value)
Gets or sets the cyan component.
value
- doable valuepublic final double getM()
Gets or sets the magenta component.
getM
in class BasicSetColorOperator
public final void setM(double value)
Gets or sets the magenta component.
value
- doable valuepublic final double getY()
Gets or sets the yellow component.
getY
in class BasicSetColorOperator
public final void setY(double value)
Gets or sets the yellow component.
value
- doable valuepublic final double getK()
Gets or sets the black component.
getK
in class BasicSetColorOperator
public final void setK(double value)
Gets or sets the black component.
value
- doable valuepublic final double getR()
Gets or sets the red component.
Value: The level of red from 0.0 to 1.0getR
in class BasicSetColorOperator
public final void setR(double value)
Gets or sets the red component.
Value: The level of red from 0.0 to 1.0value
- doable valuepublic final double getG()
Gets or sets the green component.
Value: The level of green from 0.0 to 1.0getG
in class BasicSetColorOperator
public final void setG(double value)
Gets or sets the green component.
Value: The level of green from 0.0 to 1.0value
- doable valuepublic final double getB()
Gets or sets the blue component.
Value: The level of blue from 0.0 to 1.0getB
in class BasicSetColorOperator
public final void setB(double value)
Gets or sets the blue component.
Value: The level of blue from 0.0 to 1.0value
- doable valuepublic void accept(IOperatorSelector visitor)
Accepts visitor object to process operator.
Copyright © 2023 Aspose. All Rights Reserved.