Table of Contents

Class PdfAxialShading

Namespace
PdfEngine.Vector
Assembly
PdfEngine.Abstractions.dll

Type 2 Axial (Linear) Shading defined along an axis between two points.

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

Constructors

PdfAxialShading(PdfPoint, PdfPoint, PdfColor, PdfColor, bool, bool)

Type 2 Axial (Linear) Shading defined along an axis between two points.

public PdfAxialShading(PdfPoint StartPoint, PdfPoint EndPoint, PdfColor StartColor, PdfColor EndColor, bool ExtendStart = true, bool ExtendEnd = true)

Parameters

StartPoint PdfPoint
EndPoint PdfPoint
StartColor PdfColor
EndColor PdfColor
ExtendStart bool
ExtendEnd bool

Properties

EndColor

public PdfColor EndColor { get; init; }

Property Value

PdfColor

EndPoint

public PdfPoint EndPoint { get; init; }

Property Value

PdfPoint

ExtendEnd

public bool ExtendEnd { get; init; }

Property Value

bool

ExtendStart

public bool ExtendStart { get; init; }

Property Value

bool

StartColor

public PdfColor StartColor { get; init; }

Property Value

PdfColor

StartPoint

public PdfPoint StartPoint { get; init; }

Property Value

PdfPoint

Stops

Colour stops sampled from the shading function (offset 0..1 along the axis).

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

Property Value

IReadOnlyList<PdfGradientStop>