RGB@

Platform

Win32, x64

Purpose

To pack 8-bit colour values into a 32-bit integer.

Syntax

INTEGER FUNCTION RGB@(RED,GREEN,BLUE)
INTEGER RED,GREEN,BLUE

Description

This function is equivalent to the Windows API macro called RGB. It takes colour values in the range 0 to 255 and packs them into the 24 least significant bits of a 32 bit integer. GREEN is shifted left 8 bits and BLUE is shifted left 16 bits. RGB values are used in drawing routines when RGB colour mode is adopted.

Return value

Returns the packed RGB values.

 

 

Basket
Empty
 
Copyright © 1999-2020 Silverfrost Limited