SetRGBColorStroke
Overview
SetRGBColorStroke is a class in Aspose.PDF FOSS for .NET.
Inherits from: BasicSetColorOperator.
RG — Set RGB stroke color.
This class declares 8 methods for SetRGBColorStroke objects in .NET programs.
Available methods include: Accept, IsTextShowOperator, SetRGBColorStroke, ToPdf, ToString, ValueEquals, getColor.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: B, C, Color, CommandName, G, Gray, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
R | double | Read/Write | Gets or sets the red component of the stroke color, from 0 (none) to 1 (full). |
G | double | Read/Write | Gets or sets the green component of the stroke color, from 0 (none) to 1 (full). |
B | double | Read/Write | Gets or sets the blue component of the stroke color, from 0 (none) to 1 (full). |
Color | double[] | Read | Gets the color components. |
Gray | double | Read | Gets the gray level. |
C | double | Read | Gets the cyan component. |
M | double | Read | Gets the magenta component. |
Y | double | Read | Gets the yellow component. |
K | double | Read | Gets the black component. |
CommandName | string | Read | The PDF command name (last token of the serialised form, e.g. |
Index | int | Read/Write | 1-based position of this operator within its containing OperatorCollection. |
Methods
| Signature | Description |
|---|---|
SetRGBColorStroke(r: double, g: double, b: double) | Creates an RG operator that sets the stroke color to the given red, green and blue components, each from 0 (none) to 1 (full). |
SetRGBColorStroke(color: System.Drawing.Color) | Creates an RG operator from a System.Drawing.Color: each 0-255 channel is divided by 255, and the alpha channel is ignored. |
ToPdf() | Calls ToPdf on this SetRGBColorStroke instance. |
ToString() | Calls ToString on this SetRGBColorStroke instance. |
Accept(visitor: IOperatorSelector) | Calls Accept(visitor) on this SetRGBColorStroke instance. |
getColor() | Calls getColor on this SetRGBColorStroke instance. |
IsTextShowOperator(op: Operator) | True when op is a text-showing operator (Tj / TJ / ’ / " — concrete subclasses of TextShowOperator). |
ValueEquals(op: Operator) | True when this operator’s serialised PDF form equals op’s. |