←Select platform

FromColor Method

Summary
Converts a Windows Presentation Foundation (WPF) System.Windows.Media.Color object to a LEADTOOLS Leadtools.RasterColor object.
Syntax
C#
C++
public static RasterColor FromColor( 
   Color color 
) 
vb[VB Syntax] 
  
Public Shared Function FromColor( _ 
   ByVal _color_ As Color _ 
) As RasterColor 
public: 
static RasterColor FromColor(  
   Color color 
)  

Parameters

color
The source WPF 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+, and WPF. Use this method to convert a WPF System.Windows.Media.Color object to a LEADTOOLS Leadtools.RasterColor object.

Example

For an example, refer to RasterColorConverter.

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.