Table of Contents

Class LinearGradientPaint

Namespace
SixLabors.Fonts.Rendering
Assembly
SixLabors.Fonts.dll

Linear gradient paint.

public sealed class LinearGradientPaint : Paint
Inheritance
LinearGradientPaint
Inherited Members

Properties

P0

Gets the gradient start point. Normalized if SixLabors.Fonts.Rendering.LinearGradientPaint.Units is ObjectBoundingBox.

public Vector2 P0 { get; init; }

Property Value

Vector2

P1

Gets the gradient end point. Normalized if SixLabors.Fonts.Rendering.LinearGradientPaint.Units is ObjectBoundingBox.

public Vector2 P1 { get; init; }

Property Value

Vector2

P2

Gets the rotation point for the gradient. Normalized if SixLabors.Fonts.Rendering.LinearGradientPaint.Units is ObjectBoundingBox.

public Vector2? P2 { get; init; }

Property Value

Vector2?

Spread

Gets the spread method applied when sampling outside the [0, 1] range.

public SpreadMethod Spread { get; init; }

Property Value

SpreadMethod

Stops

Gets the ordered gradient stops (ascending by Offset).

public GradientStop[] Stops { get; init; }

Property Value

GradientStop[]