CreateRadialShading(PathPoint, Double, PathPoint, Double, IReadOnlyList, PdfShadingOptions?) Method

Definition

Namespace Broadside
Assembly Broadside.dll

Creates a radial shading (Type 3) that blends between gradient stops from one circle to another.

public PdfRadialShading CreateRadialShading(PathPoint startCenter, double startRadius, PathPoint endCenter, double endRadius, IReadOnlyList<PdfGradientStop> stops, PdfShadingOptions? options)

Parameters

startCenter
PathPoint

The centre of the circle where offset 0 lies, in the shading's target space.

startRadius
Double

Its radius: 0 or more.

endCenter
PathPoint

The centre of the circle where offset 1 lies.

endRadius
Double

Its radius: 0 or more.

stops
IReadOnlyList<PdfGradientStop>

The stops, as for CreateGradientFunction(IReadOnlyList<PdfGradientStop>); their colour space is the shading's.

options
PdfShadingOptions

The optional entries; null for none.

Returns

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

Remarks

ISO 32000-2 §8.7.4.5.4, Table 80 (PDF 1.3). Domain is [0 1]. Records PDF 1.3. A mutation.