IM: Color Utilities
From IM - An Imaging Tool
Detailed Description
- See im_util.h
|
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) |
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. |
| 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. |