ARGB (Reserved Word)

image\trumpet2.gif Disclaimer

Returns a numeric value that represents a color.

ARGB(nAlpha, nRed, nGreen, nBlue)

Where nAlpha, nRed, nGreen, and nBlue are the alpha, red, green, and blue values, respectively, of the color for which a single color value is to be returned. Acceptable values of each of these parameters can range from 0 to 255.

Remarks

ARGB returns a 32-bit integer representation of a color. Alpha values range from 0 (fully transparent) to 255 (fully opaque).

Example

Assigns Value1 the numeric value of a color that has an alpha value of 255, a red value of 128, a green value of 127, and a blue value of 0.

Value1 = ARGB(255, 128, 127, 0);

See Also

GetAValue, GetRValue, GetGValue, GetBValue, RGB