System.Drawing.Drawing2D (system.drawing.dll) | sealed class |
This allows you to define a gradient scheme for the
LinearGradientBrush. It consists of two arrays:
the Factors and the Positions.
The Factors indicate the relative proportions of
the two colors at the corresponding Positions. The
system linearly interpolates between the specified positions to
produce a smooth gradient.
Note that the values in the Factors array must be
between 0.0 and 1.0 (from 100% color 2, to 100% color 1).
See ColorBlend for a multicolored blend.
public sealed class Blend {
// Public Constructors
public Blend();
public Blend(int count);
// Public Instance Properties
public float[ ] Factors{set; get; }
public float[ ] Positions{set; get; }
}
Returned By
LinearGradientBrush.Blend,
PathGradientBrush.Blend
Passed To
LinearGradientBrush.Blend,
PathGradientBrush.Blend
|