Laxkit
0.0.7.1
|
Class to pass simple rgb, gray, or cmyk colors. More...
Public Member Functions | |
SimpleColorEventData (int nmax, int gray, int a, int nid) | |
SimpleColorEventData (int nmax, int r, int g, int b, int a, int nid) | |
SimpleColorEventData (int nmax, int c, int m, int y, int k, int a, int nid) | |
Public Member Functions inherited from Laxkit::EventData | |
EventData (const char *message, unsigned long fromwindow=0, unsigned long towindow=0) | |
EventData (int message, unsigned long fromwindow=0, unsigned long towindow=0) |
Public Attributes | |
int | numchannels |
int * | channels |
int | max |
int | colortype |
int | id |
Public Attributes inherited from Laxkit::EventData | |
unsigned long | type |
unsigned long | subtype |
char * | send_message |
unsigned long | from |
unsigned long | to |
int | propagate |
clock_t | send_time |
unsigned long | xlib_time |
EventData * | next |
Class to pass simple rgb, gray, or cmyk colors.
You can use simple_cmyk_to_rgb() and simple_rgb_to_cmyk() to do some simple conversions.