Visual Basic (Declaration) | |
---|---|
Public Shared Function FromRgb( _ ByVal rgb As Integer _ ) As RasterColor |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public static RasterColor FromRgb( int rgb ) |
Managed Extensions for C++ | |
---|---|
public: static RasterColor FromRgb( int rgb ) |
C++/CLI | |
---|---|
public: static RasterColor FromRgb( int rgb ) |
Parameters
- rgb
- The rgb value.
Return Value
The RasterColor structure that this method creates.This example will create an array of RasterColor containing 256 shades of gray.
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