Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnLinearGradientBrush Constructor
See Also 
Leadtools.Annotations Namespace > AnnLinearGradientBrush Class : AnnLinearGradientBrush Constructor



color1
The Color structure that represents the starting color of this AnnLinearGradientBrush.
color2
The 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.
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 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 Color structure that represents the starting color of this AnnLinearGradientBrush.
color2
The 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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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