Table of Contents

Class PdfRadialShading

Namespace
PdfEngine.Vector
Assembly
PdfEngine.Abstractions.dll

Type 3 Radial Shading defined between two circles with centers and radii.

public sealed record PdfRadialShading : PdfShading, IEquatable<PdfShading>, IEquatable<PdfRadialShading>
Inheritance
PdfRadialShading
Implements
Inherited Members

Constructors

PdfRadialShading(PdfPoint, double, PdfPoint, double, PdfColor, PdfColor, bool, bool)

Type 3 Radial Shading defined between two circles with centers and radii.

public PdfRadialShading(PdfPoint StartCenter, double StartRadius, PdfPoint EndCenter, double EndRadius, PdfColor StartColor, PdfColor EndColor, bool ExtendStart = true, bool ExtendEnd = true)

Parameters

StartCenter PdfPoint
StartRadius double
EndCenter PdfPoint
EndRadius double
StartColor PdfColor
EndColor PdfColor
ExtendStart bool
ExtendEnd bool

Properties

EndCenter

public PdfPoint EndCenter { get; init; }

Property Value

PdfPoint

EndColor

public PdfColor EndColor { get; init; }

Property Value

PdfColor

EndRadius

public double EndRadius { get; init; }

Property Value

double

ExtendEnd

public bool ExtendEnd { get; init; }

Property Value

bool

ExtendStart

public bool ExtendStart { get; init; }

Property Value

bool

IsGeneral

Two arbitrary circles (ISO 32000-2 8.7.4.5.4), not expressible as a focal/centre radial brush: Stops are over the shading parameter t (offset 0 = start circle) and the backend evaluates the largest t per pixel. Backends that cannot must classify the area.

public bool IsGeneral { get; init; }

Property Value

bool

StartCenter

public PdfPoint StartCenter { get; init; }

Property Value

PdfPoint

StartColor

public PdfColor StartColor { get; init; }

Property Value

PdfColor

StartRadius

public double StartRadius { get; init; }

Property Value

double

Stops

Colour stops sampled from the shading function (offset 0..1 from start to end circle).

public IReadOnlyList<PdfGradientStop>? Stops { get; init; }

Property Value

IReadOnlyList<PdfGradientStop>