Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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
)
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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also