LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnLinearGradientBrush Constructor(Color,Color,LinearGradientMode)
See Also 
Leadtools.Annotations Namespace > AnnLinearGradientBrush Class > AnnLinearGradientBrush Constructor : AnnLinearGradientBrush Constructor(Color,Color,LinearGradientMode)



color1
The System.Drawing.Color structure that represents the starting color of this AnnLinearGradientBrush.
color2
The System.Drawing.Color structure that represents the ending color of this AnnLinearGradientBrush.
mode
A LinearGradientMode enumeration element that specifies the orientation of the gradient. The orientation determines the starting and ending points of the gradient. For example, LinearGradientMode.ForwardDiagonal specifies that the starting point is the upper-left corner of the rectangle and the ending point is the lower-right corner of the rectangle.

The AnnLinearGradientBrush Constructor(Color,Color,LinearGradientMode) is available in LEADTOOLS Document and Medical Imaging toolkits.

Initializes a new AnnLinearGradientBrush object based on a starting color, ending color and orientation.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal color1 As Color, _
   ByVal color2 As Color, _
   ByVal mode As LinearGradientMode _
)
Visual Basic (Usage)Copy Code
Dim color1 As Color
Dim color2 As Color
Dim mode As LinearGradientMode
 
Dim instance As New AnnLinearGradientBrush(color1, color2, mode)
C# 
public AnnLinearGradientBrush( 
   Color color1,
   Color color2,
   LinearGradientMode mode
)
C++/CLI 
public:
AnnLinearGradientBrush( 
   Color color1,
   Color color2,
   LinearGradientMode mode
)

Parameters

color1
The System.Drawing.Color structure that represents the starting color of this AnnLinearGradientBrush.
color2
The System.Drawing.Color structure that represents the ending color of this AnnLinearGradientBrush.
mode
A LinearGradientMode enumeration element that specifies the orientation of the gradient. The orientation determines the starting and ending points of the gradient. For example, LinearGradientMode.ForwardDiagonal specifies that the starting point is the upper-left corner of the rectangle and the ending point is the lower-right corner of the rectangle.

Example

For an example, refer to AnnLinearGradientBrush.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features