Defines a blend pattern for a System.Drawing.Drawing2D.LinearGradientBrush object. This class cannot be inherited.
See Also: Blend Members
Gradients are commonly used to smoothly shade the interiors of shapes. A blend pattern is defined by two arrays (Blend.Factors and Blend.Positions) that each contain the same number of elements. Each element of the Blend.Positions array represents a proportion of the distance along the gradient line. Each element of the Blend.Factors array represents the proportion of the starting and ending colors in the gradient blend at the position along the gradient line represented by the corresponding element in the Blend.Positions array.
For example, if corresponding elements of the Blend.Positions and Blend.Factors arrays are 0.2 and 0.3, respectively, for a linear gradient from blue to red along a 100-pixel line, the color 20 pixels along that line (20 percent of the distance) consists of 30 percent blue and 70 percent red.