Skip to main content

ColorBlend

Namespace: System.Drawing.Drawing2D

Assembly: System.Drawing.Managed (4.0.0.0)

Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.

public class ColorBlend

Constructors​

Instance member ColorBlend()​

Initializes a new instance of the ColorBlend class.

Instance member ColorBlend(count)​

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

NameTypeDescription
countInt32The number of elements in the Colors and Positions arrays.

Properties​

Instance member Colors​

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

Instance member Positions​

Single[]: Gets or sets the positions along a gradient line.