.NET Windows Forms in a Nutshell

ColorBlend

System.Drawing.Drawing2D (system.drawing.dll) sealed class

This class allows you to define a multicolored gradient blend for the LinearGradientBrush . Similar to Blend , it consists of two arrays: the Colors and the Positions . The brush linearly interpolates between the colors at the specified positions to produce a smooth gradient.

public sealed class ColorBlend { // Public Constructors public ColorBlend (); public ColorBlend (int count ); // Public Instance Properties public Color[ ] Colors {set; get; } public float[ ] Positions {set; get; } }

Returned By

LinearGradientBrush.InterpolationColors , PathGradientBrush.InterpolationColors

Passed To

LinearGradientBrush.InterpolationColors , PathGradientBrush.InterpolationColors

Категории