Table of Contents

Class PdfPattern.Shading

Namespace
iText.Kernel.Pdf.Colorspace
Assembly
itext.kernel.dll

Shading pattern provides a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition.

public class PdfPattern.Shading : PdfPattern
Inheritance
PdfPattern.Shading
Inherited Members

Remarks

Shading pattern provides a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition. Patterns of this type are described by pattern dictionaries with a pattern type of 2.

Constructors

Shading(PdfShading)

Creates a new instance of Shading Pattern.

public Shading(PdfShading shading)

Parameters

shading PdfShading

the PdfShading that specifies the details of a particular gradient fill

Shading(PdfDictionary)

Creates new instance from the PdfStream object.

public Shading(PdfDictionary pdfObject)

Parameters

pdfObject PdfDictionary

the PdfStream that represents Shading Pattern.

Remarks

Creates new instance from the PdfStream object. This stream should have PatternType equals to 2.

Methods

GetShading()

Gets the dictionary of the pattern's PdfShading.

public virtual PdfDictionary GetShading()

Returns

PdfDictionary

the dictionary of the pattern's PdfShading

SetShading(PdfShading)

Sets the PdfShading that specifies the details of a particular gradient fill.

public virtual void SetShading(PdfShading shading)

Parameters

shading PdfShading

the PdfShading that specifies the details of a particular gradient fill

SetShading(PdfDictionary)

Sets the dictionary which specifies the details of a particular gradient fill.

public virtual void SetShading(PdfDictionary shading)

Parameters

shading PdfDictionary

the dictionary of the pattern's PdfShading