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.
- C#
- VB.NET
public class ColorBlend
Public Class ColorBlend
Constructors
ColorBlend()
Initializes a new instance of the ColorBlend class.
ColorBlend(count)
Initializes a new instance of the ColorBlend class with the specified number of colors and positions.
| Name | Type | Description |
|---|---|---|
| count | Int32 | The number of elements in the Colors and Positions arrays. |
Properties
Colors
Color[]: Gets or sets an array of colors that represents the colors to use at corresponding positions along a gradient.
Positions
Single[]: Gets or sets the positions along a gradient line.