Skip to content

PDFSetGrayStrokeOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the G (set gray level for stroke operations) content stream operator.

public class PDFSetGrayStrokeOperator : PDFContentStreamOperator

Inheritance ObjectPDFContentStreamOperatorPDFSetGrayStrokeOperator

Constructors

PDFSetGrayStrokeOperator()

Initializes a new PDFSetGrayStrokeOperator object.

public PDFSetGrayStrokeOperator()

PDFSetGrayStrokeOperator(Double)

Initializes a new PDFSetGrayStrokeOperator object.

public PDFSetGrayStrokeOperator(double g)

Parameters

g Double
The gray level.


Properties

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 gray level.

public double G { get; set; }

Property Value

Double
The gray level.


OpCode

Gets the operator code.

public string OpCode { get; }

Property Value

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


Type

Gets or sets the operator type.

public PDFContentStreamOperatorType Type { get; set; }

Property Value

PDFContentStreamOperatorType
The type of this operator.