LEADTOOLS WPF and Silverlight (Leadtools.Windows.Media assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
ToColor Method
See Also 
Leadtools.Windows.Media Namespace > RasterColorConverter Class : ToColor Method



color
The source LEADTOOLS Leadtools.RasterColor color.
color
The source LEADTOOLS Leadtools.RasterColor color.
Converts a LEADTOOLS Leadtools.RasterColor object to a a Windows Presentation Foundation (WPF) or Silverlight System.Windows.Media.Color object. Supported in Silverlight, Windows Phone 7

Syntax

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

Parameters

color
The source LEADTOOLS Leadtools.RasterColor color.

Return Value

The WPF/Silverlight System.Windows.Media.Color 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 LEADTOOLS Leadtools.RasterColor object to a WPF/Silverlight System.Windows.Media.Color object.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also