LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)

ToColor Method

Show in webframe





The source LEADTOOLS Leadtools.RasterColor color.
Converts a LEADTOOLS Leadtools.RasterColor object to a System.Drawing (GDI+) System.Drawing.Color object.
Syntax
public static Color ToColor( 
   RasterColor color
)
'Declaration
 
Public Shared Function ToColor( _
   ByVal color As RasterColor _
) As Color
'Usage
 
Dim color As RasterColor
Dim value As Color
 
value = RasterColorConverter.ToColor(color)

            

            
public:
static Color ToColor( 
   RasterColor color
) 

Parameters

color
The source LEADTOOLS Leadtools.RasterColor color.

Return Value

The System.Drawing (GDI+) System.Drawing.Color object.
Remarks

The LEADTOOLS Leadtools.RasterColor class provides a platform independent representation of an ARGB color that can be used in any platform supported by LEADTOOLS such as GDI, GDI+, WPF and Silverlight. Use this method to convert a LEADTOOLS Leadtools.RasterColor object to a System.Drawing (GDI+) System.Drawing.Color object.

Example
For an example, refer to RasterColorConverter.
Requirements

Target Platforms

See Also

Reference

RasterColorConverter Class
RasterColorConverter Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.