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




rgb
The rgb value.
Creates a RasterColor from an rgb value.

Syntax

Visual Basic (Declaration) 
Public Shared Function FromRgb( _
   ByVal rgb As Integer _
) As RasterColor
Visual Basic (Usage)Copy Code
Dim rgb As Integer
Dim value As RasterColor
 
value = RasterColor.FromRgb(rgb)
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.

Example

This example will create an array of RasterColor containing 256 shades of gray.

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