GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / ARGB Method / ARGB(Byte,Byte,Byte,Byte) Method
The value for the alpha component also known as a transparency. Use the value between 0 (full transparency) and 255 (full opacity).
The value for the red component. Use the value between 0 and 255.
The value for the green component. Use the value between 0 and 255.
The value for the blue component. Use the value between 0 and 255.
Example





In This Topic
ARGB(Byte,Byte,Byte,Byte) Method
In This Topic
Returns a Color object, that represents a color composed from a specified set of alpha, red, green and blue color components.
Syntax
'Declaration
 
Public Overloads Function ARGB( _
   ByVal Alpha As Byte, _
   ByVal Red As Byte, _
   ByVal Green As Byte, _
   ByVal Blue As Byte _
) As Color
public Color ARGB( 
   byte Alpha,
   byte Red,
   byte Green,
   byte Blue
)
public function ARGB( 
    Alpha: Byte;
    Red: Byte;
    Green: Byte;
    Blue: Byte
): Color; 
public function ARGB( 
   Alpha : byte,
   Red : byte,
   Green : byte,
   Blue : byte
) : Color;
public: Color ARGB( 
   byte Alpha,
   byte Red,
   byte Green,
   byte Blue
) 
public:
Color ARGB( 
   byte Alpha,
   byte Red,
   byte Green,
   byte Blue
) 

Parameters

Alpha
The value for the alpha component also known as a transparency. Use the value between 0 (full transparency) and 255 (full opacity).
Red
The value for the red component. Use the value between 0 and 255.
Green
The value for the green component. Use the value between 0 and 255.
Blue
The value for the blue component. Use the value between 0 and 255.

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(255, 255, 0, 0)
//We assume that the GdViewer1 control has been properly integrated.
Color colorRed = GdViewer1.ARGB(255, 255, 0, 0);
See Also