Creates an acyclic GradientBrush.
Namespace:
Imsl.Chart2D
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static LinearGradientBrush CreateGradientBrush( float x1, float y1, Color color1, float x2, float y2, Color color2 ) |
Visual Basic (Declaration) |
---|
Public Shared Function CreateGradientBrush ( _ x1 As Single, _ y1 As Single, _ color1 As Color, _ x2 As Single, _ y2 As Single, _ color2 As Color _ ) As LinearGradientBrush |
Visual C++ |
---|
public: static LinearGradientBrush^ CreateGradientBrush( float x1, float y1, Color color1, float x2, float y2, Color color2 ) |
Parameters
- x1
- Type: System..::.Single
A float containing the x-coordinate of the upper-left corner of drawing area.
- y1
- Type: System..::.Single
A float containing the y-coordinate of the upper-left corner of drawing area.
- color1
- Type: System.Drawing..::.Color
A Color structure that represents the starting color for the gradient.
- x2
- Type: System..::.Single
A float containing the x-coordinate of the lower-right corner of drawing area.
- y2
- Type: System..::.Single
A float containing the x-coordinate of the lower-right corner of drawing area.
- color2
- Type: System.Drawing..::.Color
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.