IMSL C# Numerical Library

Draw.CreateGradientBrush Method 

Creates an acyclic GradientBrush.

public static LinearGradientBrush CreateGradientBrush(
   float x1,
   float y1,
   Color color1,
   float x2,
   float y2,
   Color color2
);

Parameters

x1
A float containing the x-coordinate of the upper-left corner of drawing area.
y1
A float containing the y-coordinate of the upper-left corner of drawing area.
color1
A Color structure that represents the starting color for the gradient.
x2
A float containing the x-coordinate of the lower-right corner of drawing area.
y2
A float containing the x-coordinate of the lower-right corner of drawing area.
color2
A Color structure that represents the ending color for the gradient.

Return Value

A new instance of LinearGradientBrush with the colors and coordinates specified.

Remarks

This gradient is acyclic.

See Also

Draw Class | Imsl.Chart2D Namespace