SetRGBColorStroke

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

NameTypeAccessDescription
RdoubleRead/WriteGets or sets the red component of the stroke color, from 0 (none) to 1 (full).
GdoubleRead/WriteGets or sets the green component of the stroke color, from 0 (none) to 1 (full).
BdoubleRead/WriteGets or sets the blue component of the stroke color, from 0 (none) to 1 (full).
Colordouble[]ReadGets the color components.
GraydoubleReadGets the gray level.
CdoubleReadGets the cyan component.
MdoubleReadGets the magenta component.
YdoubleReadGets the yellow component.
KdoubleReadGets the black component.
CommandNamestringReadThe PDF command name (last token of the serialised form, e.g.
IndexintRead/Write1-based position of this operator within its containing OperatorCollection.

Methods

SignatureDescription
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.

See Also

 English