CreateFunctionShading(PdfColorSpace, PdfFunction, PdfRectangle, Matrix, PdfShadingOptions?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Creates a function-based shading (Type 1): the colour of every point (x, y) of domain is the function's value there.

public PdfFunctionShading CreateFunctionShading(PdfColorSpace colorSpace, PdfFunction function, PdfRectangle domain, Matrix matrix, PdfShadingOptions? options)

Parameters

colorSpace
PdfColorSpace

The shading's colour space: a space of this document, not Pattern or Indexed.

function
PdfFunction

A function of this document from two inputs (x, y) to the colour space's components, defined over domain.

domain
PdfRectangle

The rectangle of (x, y) values the shading covers (Domain [xmin xmax ymin ymax]), in the shading's own space.

matrix
Matrix

The transformation from the domain's space to the shading's target space (Matrix); the identity is not written.

options
PdfShadingOptions

The optional entries (not ExtendStart or ExtendEnd); null for none.

Returns

PdfFunctionShading
The shading, a new indirect dictionary, as read back.

Remarks

ISO 32000-2 §8.7.4.5.2, Table 78 (PDF 1.3). Records PDF 1.3 and the function's version. A mutation.