| Visual Basic (Declaration) | |
|---|---|
Public Shared Function FromGdiPlusColor( _ ByVal color As Color _ ) As RasterColor  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| 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.For an example, refer to RasterColor. 
You can use FromGdiPlusColor to convert a System.Drawing.Color object to RasterColor and ToGdiPlusColor to convert a RasterColor object to System.Drawing.Color. 
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family