Table of Contents

Class GraphicsState

Namespace
PDFjet.NET
Assembly
PDFjet.dll

Holds the alpha values of stroking and non-stroking operations.

public class GraphicsState
Inheritance
GraphicsState
Inherited Members

Constructors

GraphicsState()

Creates a graphics state with both alpha values set to 1.0.

public GraphicsState()

Methods

GetAlphaNonStroking()

Returns the alpha of non-stroking operations.

public float GetAlphaNonStroking()

Returns

float

GetAlphaStroking()

Returns the alpha of stroking operations.

public float GetAlphaStroking()

Returns

float

GetBlendMode()

Returns the blend mode, or null if none was set.

public BlendMode? GetBlendMode()

Returns

BlendMode?

SetAlphaNonStroking(float)

Sets the alpha of non-stroking operations, such as fills, from 0.0 to 1.0. Other values are ignored.

public GraphicsState SetAlphaNonStroking(float ca)

Parameters

ca float

Returns

GraphicsState

SetAlphaStroking(float)

Sets the alpha of stroking operations, from 0.0 to 1.0. Other values are ignored.

public GraphicsState SetAlphaStroking(float CA)

Parameters

CA float

Returns

GraphicsState

SetBlendMode(BlendMode?)

Sets the blend mode: how what is drawn is mixed with what is already on the page. BlendMode.MULTIPLY draws like a highlighter pen. The blend mode stays until a graphics state sets another one, so set BlendMode.NORMAL to go back to painting over. A PDF/A-1 document takes only BlendMode.NORMAL. Null sets none.

public GraphicsState SetBlendMode(BlendMode? blendMode)

Parameters

blendMode BlendMode?

Returns

GraphicsState