←Select platform

FromColor Method

Summary

Converts a Windows Presentation Foundation (WPF) or Silverlight System.Windows.Media.Color object to a LEADTOOLS Leadtools.RasterColor object.

Syntax

C#
VB
C++
public static Leadtools.RasterColor FromColor(  
   Color color 
) 
Public Shared Function FromColor( _ 
   ByVal color As Color _ 
) As Leadtools.RasterColor 
public: 
static Leadtools.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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Click or drag to resize