Skip to content

# PDFSetRgbStrokeOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the RG (set RGB level for stroke operations) content stream operator.

    public class PDFSetRgbStrokeOperator : PDFContentStreamOperator

Inheritance Object → PDFContentStreamOperator → PDFSetRgbStrokeOperator

## Constructors

### PDFSetRgbStrokeOperator()

Initializes a new PDFSetRgbStrokeOperator object.

    public PDFSetRgbStrokeOperator()

### PDFSetRgbStrokeOperator(Double, Double, Double)

Initializes a new PDFSetRgbStrokeOperator object.

    public PDFSetRgbStrokeOperator(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.