Error processing SSI file
(Leadtools.Annotations.Rendering)

Show in webframe

ToBrush(AnnBrush,Int32,Double) Method







Brush object to convert
The desired alpha of the resulting brush. Values can be from 0 to 255
The desired opacity of the resulting brush. Values can be from 0 to 1.0
Helper method to convert AnnBrush to System.Drawing.Brush using either an alpha or opacity value.
Syntax
public static Brush ToBrush( 
   AnnBrush brush,
   int alpha,
   double opacity
)
'Declaration
 
Public Overloads Shared Function ToBrush( _
   ByVal brush As AnnBrush, _
   ByVal alpha As Integer, _
   ByVal opacity As Double _
) As Brush
'Usage
 
Dim brush As AnnBrush
Dim alpha As Integer
Dim opacity As Double
Dim value As Brush
 
value = AnnWinFormsRenderingEngine.ToBrush(brush, alpha, opacity)
public static Brush ToBrush( 
   AnnBrush brush,
   int alpha,
   double opacity
)
 function Leadtools.Annotations.Rendering.AnnWinFormsRenderingEngine.ToBrush(AnnBrush,Int32,Double)( 
   brush ,
   alpha ,
   opacity 
)

Parameters

brush
Brush object to convert
alpha
The desired alpha of the resulting brush. Values can be from 0 to 255
opacity
The desired opacity of the resulting brush. Values can be from 0 to 1.0

Return Value

System.Drawing.Brush object created.
Requirements

Target Platforms

See Also

Reference

AnnWinFormsRenderingEngine Class
AnnWinFormsRenderingEngine Members
Overload List

Error processing SSI file
Leadtools.Annotations.Rendering requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features