﻿ ARGBI Method (GdViewer)
Reference Guide
GdPicture14 Namespace / GdViewer Class / ARGBI 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
ARGBI Method (GdViewer)
In This Topic
Returns a 32-bit value, that represents a color composed from a specified set of alpha, red, green and blue color components.
Syntax
```'Declaration

Public Function ARGBI( _
ByVal Alpha As Byte, _
ByVal Red As Byte, _
ByVal Green As Byte, _
ByVal Blue As Byte _
) As Integer```
```public int ARGBI(
byte Alpha,
byte Red,
byte Green,
byte Blue
)```
```public function ARGBI(
Alpha: Byte;
Red: Byte;
Green: Byte;
Blue: Byte
): Integer; ```
```public function ARGBI(
Alpha : byte,
Red : byte,
Green : byte,
Blue : byte
) : int;```
```public: int ARGBI(
byte Alpha,
byte Red,
byte Green,
byte Blue
) ```
```public:
int ARGBI(
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 32-bit value representing a required color.
Example
How to obtain the proper value for the red color.
```'We assume that the GdViewer1 control has been properly integrated.

'Get the value for the red color.
Dim colorRed As Integer = GdViewer1.ARGBI(255, 255, 0, 0)
'Set the new background color.
GdViewer1.SetBackgroundColor(colorRed)```
```//We assume that the GdViewer1 control has been properly integrated.

//Get the value for the red color.
int colorRed = GdViewer1.ARGBI(255, 255, 0, 0);
//Set the new background color.
GdViewer1.SetBackgroundColor(colorRed);```