SetRGBColorStroke
Inheritance: java.lang.Object, com.aspose.pdf.Operator com.aspose.pdf.operators.SetColorOperator com.aspose.pdf.operators.SetRGBColorStroke, com.aspose.pdf.Operator, com.aspose.pdf.operators.SetColorOperator com.aspose.pdf.operators.SetRGBColorStroke, com.aspose.pdf.operators.SetColorOperator, com.aspose.pdf.operators.SetRGBColorStroke
public class SetRGBColorStroke extends SetColorOperator
Class representing RG operator (set RGB color for stroking operators).
Constructors
| Constructor | Description |
|---|---|
| SetRGBColorStroke | Initializes operator with color. |
| SetRGBColorStroke | Constructor for writing program. |
| SetRGBColorStroke | Constructor for operator class. |
Methods
| Method | Description |
|---|---|
| accept | Accepts visitor object to process operator. |
| getB | Gets or sets the blue component. Value: The level of blue from 0.0 to 1.0 |
| getCMYKColor | |
| getColor | Returns color specified by operator. |
| getG | Gets or sets the green component. Value: The level of green from 0.0 to 1.0 |
| getR | Gets or sets the red component. Value: The level of red from 0.0 to 1.0 |
| setB | Gets or sets the blue component. Value: The level of blue from 0.0 to 1.0 |
| setG | Gets or sets the green component. Value: The level of green from 0.0 to 1.0 |
| setR | Gets or sets the red component. Value: The level of red from 0.0 to 1.0 |
| toString | Returns text representation of operator. |
SetRGBColorStroke
Initializes operator with color.
SetRGBColorStroke
public SetRGBColorStroke(double r, double g, double b)
Constructor for writing program.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| r | The level of red from 0.0 to 1.0 | |
| g | The level of green from 0.0 to 1.0 | |
| b | The level of blue from 0.0 to 1.0 |
SetRGBColorStroke
Constructor for operator class.
accept
Accepts visitor object to process operator.
getB
public final double getB()
Gets or sets the blue component. Value: The level of blue from 0.0 to 1.0
Returns: doable value
getCMYKColor
public void getCMYKColor(double[] rgb, double[] cmykOut)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rgb | ||
| cmykOut |
getColor
public Color getColor()
Returns color specified by operator.
Returns: Color specified by operator.
getG
public final double getG()
Gets or sets the green component. Value: The level of green from 0.0 to 1.0
Returns: doable value
getR
public final double getR()
Gets or sets the red component. Value: The level of red from 0.0 to 1.0
Returns: doable value
setB
public final void setB(double value)
Gets or sets the blue component. Value: The level of blue from 0.0 to 1.0
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |
setG
public final void setG(double value)
Gets or sets the green component. Value: The level of green from 0.0 to 1.0
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |
setR
public final void setR(double value)
Gets or sets the red component. Value: The level of red from 0.0 to 1.0
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | doable value |
toString
public String toString()
Returns text representation of operator.
Returns: Text representation of operator.