Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
FromGdiPlusColor Method
See Also 
Leadtools Namespace > RasterColor Structure : FromGdiPlusColor Method




color
The source .NET color.
Creates a RasterColor from a .NET Color structure.

Syntax

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

Parameters

color
The source .NET color.

Return Value

The RasterColor structure that this method creates.

Example

For an example, refer to RasterColor.

Remarks

You can use FromGdiPlusColor to convert a System.Drawing.Color object to RasterColor and ToGdiPlusColor to convert a RasterColor object to System.Drawing.Color.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also