PdfAxialShading Class

Definition

An axial shading (Type 2): colour varies along the axis between two points and is constant across it.

public sealed class PdfAxialShading : PdfShading

Remarks

ISO 32000-2 §8.7.4.5.3, Table 79. For a point (x, y) the axis parameter is x′ = ((x₁ − x₀)(x − x₀) + (y₁ − y₀)(y − y₀)) / ((x₁ − x₀)² + (y₁ − y₀)²); t = t₀ + (t₁ − t₀)x′, and beyond the ends t₀ or t₁ when that end is extended, else nothing is painted. TryGetParameter(Double, Double, out Double) computes it; the colour is EvaluateFunction(ReadOnlySpan<Single>, Span<Single>) of t. Coincident end points paint nothing.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Properties (5)

Methods (1)