PdfGradientStop Struct

Definition

A colour at a position along a gradient: 0 at its start, 1 at its end.

public readonly record struct PdfGradientStop(double Offset, PdfColor Color) : IEquatable<PdfGradientStop>

Remarks

ISO 32000-2 §7.10.3 and §7.10.4: a gradient's stops are written as an exponential function (Type 2) between two stops, or a stitching function (Type 3) of one Type 2 function per pair of neighbouring stops, the input t of an axial or radial shading (§8.7.4.5.3, §8.7.4.5.4). Stops at one offset make a hard edge there; the colour before the first stop is the first stop's, after the last stop the last stop's.

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

Constructors (1)

Properties (2)