DrawCreateGradientBrush Method |
Creates an acyclic GradientBrush.
Namespace: Imsl.Chart2DAssembly: 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
)
Public Shared Function CreateGradientBrush (
x1 As Single,
y1 As Single,
color1 As Color,
x2 As Single,
y2 As Single,
color2 As Color
) As LinearGradientBrush
public:
static LinearGradientBrush^ CreateGradientBrush(
float x1,
float y1,
Color color1,
float x2,
float y2,
Color color2
)
static member CreateGradientBrush :
x1 : float32 *
y1 : float32 *
color1 : Color *
x2 : float32 *
y2 : float32 *
color2 : Color -> LinearGradientBrush
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