public class SetRGBColor extends SetColorOperator
Class representing rg operator (set RGB color for non-stroking 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.
|
double |
getB()
Gets or sets the blue component.
|
void |
getCMYKColor(double[] rgb,
double[] cmykOut) |
Color |
getColor()
Returns color specified by operator.
|
double |
getG()
Gets or sets the green component.
|
double |
getR()
Gets or sets the red component.
|
void |
setB(double value)
Gets or sets the blue component.
|
void |
setG(double value)
Gets or sets the green component.
|
void |
setR(double value)
Gets or sets the red component.
|
String |
toString()
Returns text representation of the operator.
|
equals, getCommand, getCommandName, getIndex, getParameters, isTextShowOperator, reset, setIndex, toString, valueEquals
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
- Specified color.public Color getColor()
Returns color specified by operator.
getColor
in class SetColorOperator
public final double getR()
Gets or sets the red component.
Value: The level of red from 0.0 to 1.0public 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.0public 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.0public 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.
public String toString()
Returns text representation of the operator.
public void getCMYKColor(double[] rgb, double[] cmykOut)
Copyright © 2024 Aspose. All Rights Reserved.