Table of Contents

Class PaintShading

Namespace
UglyToad.PdfPig.Graphics.Operations
Assembly
UglyToad.PdfPig.dll

Paint the shape and color shading described by a shading dictionary, subject to the current clipping path. The current color in the graphics state is neither used nor altered. The effect is different from that of painting a path using a shading pattern as the current color.

public class PaintShading : IGraphicsStateOperation
Inheritance
PaintShading
Implements
Inherited Members

Constructors

PaintShading(NameToken)

Create a new PaintShading.

public PaintShading(NameToken name)

Parameters

name NameToken

The name of the shading dictionary.

Fields

Symbol

The symbol for this operation in a stream.

public const string Symbol = "sh"

Field Value

string

Properties

Name

The name of a shading dictionary resource in the Shading subdictionary of the current resource dictionary.

public NameToken Name { get; }

Property Value

NameToken

Operator

public string Operator { get; }

Property Value

string

Methods

Run(IOperationContext)

public void Run(IOperationContext operationContext)

Parameters

operationContext IOperationContext

ToString()

public override string ToString()

Returns

string

Write(Stream)

public void Write(Stream stream)

Parameters

stream Stream