ImageSharp/SixLabors.Fonts/Rendering/SpreadMethod.cs
2026-08-03 22:31:27 +02:00

26 lines
578 B
C#

// Copyright (c) Six Labors.
// Licensed under the Six Labors Split License.
namespace SixLabors.Fonts.Rendering {
/// <summary>
/// Specifies how a gradient should extend beyond the [0, 1] range.
/// </summary>
public enum SpreadMethod
{
/// <summary>
/// Clamp to the end colors (pad).
/// </summary>
Pad = 0,
/// <summary>
/// Mirror the gradient (reflect).
/// </summary>
Reflect = 1,
/// <summary>
/// Repeat the gradient (tile).
/// </summary>
Repeat = 2,
}
}