intrinsic-170 RGBToColor

Top  Previous  Next

170: Integer:= RGBToColor(R, G, B, A);

 

This intrinsic converts an RGB and Alpha value to a 32-bit RGB color equivalent.

 

Arguments:

 

R,G,B: These are integers that specify the Red, Green and Blue color values. The values will normally be in the range of 0 to 255. If the Red value is negative, the Green value is interpreted as a VGA color index.

 

A. This is an integer value between 0 and 255 that specifies transparency, with 0 being transparent and 255 being opaque.

 

Result: This is an integer value that specifies the RGB Color that corresponds to the input values.