Skip to content

PdfGradientStop struct

View as Markdown

Namespace: PdfNetStack.Drawing
Assembly: PdfNetStack.dll
Package: PdfNetStack

One color stop of a gradient.

public readonly record struct PdfGradientStop : IEquatable<PdfGradientStop>

Implements

IEquatable<PdfGradientStop>

One color stop of a gradient.

public PdfGradientStop(double Offset, PdfColor Color)

Offset double

Position along the gradient, 0 to 1.

Color PdfColor

Color at that position.

Color at that position.

public PdfColor Color { get; init; }

PdfColor

Position along the gradient, 0 to 1.

public double Offset { get; init; }

double