LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly)

FromColor Method

Show in webframe





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

            

            
public:
static RasterColor FromColor( 
   Color color
) 

Parameters

color
The source System.Drawing (GDI+) color.

Return Value

The corresponding LEADTOOLS Leadtools.RasterColor 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 System.Drawing (GDI+) System.Drawing.Color object to a LEADTOOLS Leadtools.RasterColor 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.