LEADTOOLS WPF and Silverlight (Leadtools.Windows.Media assembly)
LEAD Technologies, Inc

FromColor Method






The source WPF/Silverlight color.
Converts a Windows Presentation Foundation (WPF) or Silverlight System.Windows.Media.Color object to a LEADTOOLS Leadtools.RasterColor object. .NET support Silverlight support
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
)
 function Leadtools.Windows.Media.RasterColorConverter.FromColor( 
   color 
)
public:
static RasterColor FromColor( 
   Color color
) 

Parameters

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

Example
For an example, refer to RasterColorConverter.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterColorConverter Class
RasterColorConverter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.