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 As Byte, _
ByVal As Byte, _
ByVal As Byte, _
ByVal As Byte _
) As Integer
public int ARGBI(
byte ,
byte ,
byte ,
byte
)
public function ARGBI(
: Byte;
: Byte;
: Byte;
: Byte
): Integer;
public function ARGBI(
: byte,
: byte,
: byte,
: byte
) : int;
public: int ARGBI(
byte ,
byte ,
byte ,
byte
)
public:
int ARGBI(
byte ,
byte ,
byte ,
byte
)
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);
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);
See Also