<PackageReference Include="System.Drawing.Common" Version="9.0.0-rc.2.24474.1" />

ColorBlend

public sealed class ColorBlend
Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
public Color[] Colors { get; set; }

Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.

public float[] Positions { get; set; }

Gets or sets the positions along a gradient line.

public ColorBlend()

Initializes a new instance of the ColorBlend class.

public ColorBlend(int count)

Initializes a new instance of the ColorBlend class with the specified number of colors and positions.