LEADTOOLS GDI/GDI+ (Leadtools.Drawing assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
FromColor Method
See Also 



color
The source System.Drawing (GDI+) color.
color
The source System.Drawing (GDI+) color.
Converts a System.Drawing (GDI+) System.Drawing.Color object to a LEADTOOLS Leadtools.RasterColor object.

Syntax

Visual Basic (Declaration) 
Public Shared Function FromColor( _
   ByVal color As Color _
) As RasterColor
Visual Basic (Usage)Copy Code
Dim color As Color
Dim value As RasterColor
 
value = RasterColorConverter.FromColor(color)
C# 
public static RasterColor FromColor( 
   Color color
)
C++/CLI 
public:
static RasterColor FromColor( 
   Color color
) 

Parameters

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

Return Value

The corresponding LEADTOOLS Leadtools.RasterColor object.

Example

For an example, refer to RasterColorConverter.

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.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also