CreateAxialShading(PdfColorSpace, PathPoint, PathPoint, PdfFunction) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Creates an axial shading (Type 2) coloured by a function of the caller's along the line from start to end.

public PdfAxialShading CreateAxialShading(PdfColorSpace colorSpace, PathPoint start, PathPoint end, PdfFunction function)

Parameters

colorSpace
PdfColorSpace

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

start
PathPoint

The point where the function's domain starts (t0).

end
PathPoint

The point where it ends (t1); not start.

function
PdfFunction

A function of this document from one input to the colour space's components; its domain is the shading's Domain.

Returns

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

Remarks

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