PdfGradientStop struct
Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack
One color stop of a gradient.
public readonly record struct PdfGradientStop : IEquatable<PdfGradientStop>Implements
Constructors
Section titled “Constructors”PdfGradientStop(double, PdfColor)
Section titled “ PdfGradientStop(double, PdfColor)”One color stop of a gradient.
public PdfGradientStop(double Offset, PdfColor Color)Parameters
Section titled “Parameters”Offset double
Position along the gradient, 0 to 1.
Color PdfColor
Color at that position.
Properties
Section titled “Properties”Color at that position.
public PdfColor Color { get; init; }Property Value
Section titled “Property Value”Offset
Section titled “ Offset”Position along the gradient, 0 to 1.
public double Offset { get; init; }