GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / ARGB Method / ARGB(Int32) Method
A 32-bit ARGB value specified the required color.
Example





In This Topic
ARGB(Int32) Method
In This Topic
Returns a Color object representing the required color, that is specified by a 32-bit ARGB value.
Syntax
'Declaration
 
Public Overloads Function ARGB( _
   ByVal iargb As Integer _
) As Color
public Color ARGB( 
   int iargb
)
public function ARGB( 
    iargb: Integer
): Color; 
public function ARGB( 
   iargb : int
) : Color;
public: Color ARGB( 
   int iargb
) 
public:
Color ARGB( 
   int iargb
) 

Parameters

iargb
A 32-bit ARGB value specified the required color.

Return Value

A Color object representing a required color.
Example
How to get the red color object.
'We assume that the GdViewer1 control has been properly integrated.
Dim colorRed As Color = GdViewer1.ARGB(GdViewer1.ARGBI(255, 255, 0, 0))
//We assume that the GdViewer1 control has been properly integrated.
Color colorRed = GdViewer1.ARGB(GdViewer1.ARGBI(255, 255, 0, 0));
'We assume that the GdViewer1 control has been properly integrated.
Dim colorRed As Color = GdViewer1.ARGB(Color.Red.ToArgb())
//We assume that the GdViewer1 control has been properly integrated.
Color colorRed = GdViewer1.ARGB(Color.Red.ToArgb());
See Also