Color Utilities
[Utilities]

Collaboration diagram for Color Utilities:

Functions

long imColorEncode (unsigned char red, unsigned char green, unsigned char blue)
void imColorDecode (unsigned char *red, unsigned char *green, unsigned char *blue, long color)

Detailed Description

See im_util.h

Function Documentation

long imColorEncode ( unsigned char  red,
unsigned char  green,
unsigned char  blue 
)

Encode RGB components in a long for palete usage.
"long" definition is compatible with the CD library definition.

im.ColorEncode(red: number, green: number, blue: number) -> color: lightuserdata [in Lua 5] 
void imColorDecode ( unsigned char *  red,
unsigned char *  green,
unsigned char *  blue,
long  color 
)

Decode RGB components from a long for palete usage.
"long" definition is compatible with the CD library definition.

im.ColorDecode(color: lightuserdata) -> red: number, green: number, blue: number [in Lua 5] 

Generated on Thu Oct 1 11:40:08 2009 for IM by  doxygen 1.6.1