←Select platform

ToColor Method

Summary

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

Syntax

C#
VB
C++
public static Color ToColor( 
   RasterColor color 
) 
  
Public Shared Function ToColor( _ 
   ByVal color As Leadtools.RasterColor _ 
) As Color 
public: 
static Color ToColor(  
   Leadtools.RasterColor color 
)  

Parameters

color
The source LEADTOOLS Leadtools.RasterColor color.

Return Value

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

Example

For an example, refer to RasterColorConverter.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.