SetRGBColor

Overview

SetRGBColor is a class in Aspose.PDF FOSS for .NET. Inherits from: Operator.

rg — Set RGB fill color.

This class provides 8 methods for working with SetRGBColor objects in .NET programs. Available methods include: Accept, IsTextShowOperator, SetRGBColor, ToPdf, ToString, ValueEquals, getColor. All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: B, CommandName, G, Index, R.

Properties

NameTypeAccessDescription
RdoubleRead/WriteGets or sets the r.
GdoubleRead/WriteGets or sets the g.
BdoubleRead/WriteGets or sets the b.
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
SetRGBColor(r: double, g: double, b: double)Sets the rgb color value.
SetRGBColor(color: System.Drawing.Color)Sets the rgb color value.
ToPdf()Calls ToPdf on this SetRGBColor instance.
ToString()Calls ToString on this SetRGBColor instance.
Accept(visitor: IOperatorSelector)Calls Accept on this SetRGBColor instance.
getColor()Calls getColor on this SetRGBColor 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