March 2003
Intermediate to advanced
896 pages
32h 35m
English
Blend
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; } }
LinearGradientBrush.Blend,
PathGradientBrush.Blend
LinearGradientBrush.Blend,
PathGradientBrush.Blend
Read now
Unlock full access