←Select platform

ToLinearGradientBrush Method

Summary

Helper method to convert AnnLinearGradientBrush to System.Drawing.Brush with opacity and bounding rectangle values.

Syntax

C#
VB
C++
public static Brush ToLinearGradientBrush( 
   AnnLinearGradientBrush linearGradientBrush, 
   double opacity, 
   LeadRectD brushBounds 
) 
Public Shared Function ToLinearGradientBrush( _ 
   ByVal linearGradientBrush As Leadtools.Annotations.Core.AnnLinearGradientBrush, _ 
   ByVal opacity As Double, _ 
   ByVal brushBounds As Leadtools.LeadRectD _ 
) As Brush 
public:  
   static Brush^ ToLinearGradientBrush( 
      AnnLinearGradientBrush^ linearGradientBrush, 
      double opacity, 
      LeadRectD^ brushBounds 
   ) 

Parameters

linearGradientBrush
Brush object to convert

opacity
Opacity value to use. Values can be from 0 to 1.0.

brushBounds
The bounding rectangle of the brush in pixels.

Return Value

System.Drawing.Brush object created.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Rendering.WinForms Assembly