Click or drag to resize
DrawCreateGradientBrush Method
Creates an acyclic GradientBrush.

Namespace: Imsl.Chart2D
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public static LinearGradientBrush CreateGradientBrush(
	float x1,
	float y1,
	Color color1,
	float x2,
	float y2,
	Color color2
)

Parameters

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

Return Value

Type: LinearGradientBrush
A new instance of LinearGradientBrush with the colors and coordinates specified.
Remarks
This gradient is acyclic.
See Also