The 'ARGB' function changes value of Alpha, Red, Green, Blue into 32bit value.
Int32 @ARGB(int alpha, int red, int green, int blue);
Parameters
int alpha : Alpha value (0~255) opacity
int red : Red value (0~255)
int green : Green value (0~255)
int blue : Blue value (0~255)
Return Value
32bit Int
Example1
color = @ARGB(255, 255, 0, 0);
Description : 32bit value of red is stored in the variable named 'color'.
Example2
color = @ARGB(127, 255, 0, 0);
Description : 32bit value of half-transparent red is stored in the variable named 'color'.
Example3
color = @ARGB(0, 255, 0, 0);
Description : 32bit value of transparent red is stored in the variable named 'color'. (Because of transparent color, 32bit value of transparent red is identical with 32bit value of transparent green, transparent blue and so on.)
Relate items)