Skip to content

PDFSetGraphicsStateOperator

Namespace: O2S.Components.PDF4NET.Graphics.Operators

Defines the gs (set graphics state) content stream operator.

public class PDFSetGraphicsStateOperator : PDFContentStreamOperator

Inheritance ObjectPDFContentStreamOperatorPDFSetGraphicsStateOperator

Constructors

PDFSetGraphicsStateOperator()

Initializes a new PDFSetGraphicsStateOperator object.

public PDFSetGraphicsStateOperator()

PDFSetGraphicsStateOperator(PDFCosName)

Initializes a new PDFSetGraphicsStateOperator object.

public PDFSetGraphicsStateOperator(PDFCosName graphicsStateID)

Parameters

graphicsStateID PDFCosName
The graphics state ID in the /Resources dictionary.


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.


GraphicsStateID

Gets or sets the graphics state ID.

public PDFCosName GraphicsStateID { get; set; }

Property Value

PDFCosName
The graphics state ID in the /Resources dictionary.


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.