System.Drawing.Drawing2D.Blend Class

Defines a blend pattern for a System.Drawing.Drawing2D.LinearGradientBrush object. This class cannot be inherited.

See Also: Blend Members

Syntax

public sealed class Blend

Remarks

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.

Requirements

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0, 2.0.0.0