CreateShadingPattern(PdfShading, Nullable) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Creates a shading pattern (PatternType 2): a shading used as a colour, filling or stroking with it.

public PdfShadingPattern CreateShadingPattern(PdfShading shading, Matrix? matrix = default(Matrix? ))

Parameters

shading
PdfShading

A shading of this document with an indirect reference (every shading the factories above create has one).

matrix
Nullable<Matrix>

The pattern matrix, from pattern space to the default space of the content stream that uses the pattern; null for the identity.

Returns

PdfShadingPattern
The pattern, a new indirect dictionary, as read back.

Remarks

ISO 32000-2 §8.7.4.2, Table 76 (PDF 1.3), and §8.7.2. The shading's coordinates are in pattern space. Select it with SetFillPattern(PdfPattern) or SetStrokePattern(PdfPattern). Records PDF 1.3. A mutation.