Skip to content

PDFSetRgbFillOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the rg (set RGB level for fill operations) content stream operator.

public class PDFSetRgbFillOperator : PDFContentStreamOperator

Inheritance ObjectPDFContentStreamOperatorPDFSetRgbFillOperator

Constructors

PDFSetRgbFillOperator()

Initializes a new PDFSetRgbFillOperator object.

public PDFSetRgbFillOperator()

PDFSetRgbFillOperator(Double, Double, Double)

Initializes a new PDFSetRgbFillOperator object.

public PDFSetRgbFillOperator(double r, double g, double b)

Parameters

r Double
The red level.

g Double
The green level.

b Double
The blue level.


Properties

B

Gets or sets the blue level.

public double B { get; set; }

Property Value

Double
The blue level.

Remarks

The blue level is in [0, 1] range.


Context

Gets the content stream container from which the operator is extracted.

public PDFContentStreamContainer Context { get; internal set; }

Property Value

PDFContentStreamContainer
A content stream container object, a PDFPage or a PDFFormXObject.


G

Gets or sets the green level.

public double G { get; set; }

Property Value

Double
The green level.

Remarks

The green level is in [0, 1] range.


OpCode

Gets the operator code.

public string OpCode { get; }

Property Value

String
The operator code as it is written in the content stream.


R

Gets or sets the red level.

public double R { get; set; }

Property Value

Double
The red level.

Remarks

The red level is in [0, 1] range.


Type

Gets or sets the operator type.

public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.