1 |
greg |
3.3 |
/* RCSid $Id: xraster.h,v 3.2 2003/02/25 02:47:22 greg Exp $ */ |
2 |
greg |
3.1 |
/* |
3 |
|
|
* xraster.h - header file for X routines using images. |
4 |
|
|
*/ |
5 |
|
|
|
6 |
|
|
typedef struct { |
7 |
|
|
int width, height; /* image size */ |
8 |
|
|
int ncolors; /* number of colors */ |
9 |
|
|
union { |
10 |
|
|
unsigned short *m; /* monochrome */ |
11 |
|
|
unsigned char *bz; /* color */ |
12 |
|
|
} data; /* storage on our side */ |
13 |
|
|
Pixmap pm; /* storage on server side */ |
14 |
|
|
Color *cdefs; /* color definitions */ |
15 |
|
|
int *pmap; /* inverse pixel mapping */ |
16 |
|
|
int *pixels; /* allocated table entries */ |
17 |
|
|
} XRASTER; |
18 |
|
|
|
19 |
|
|
extern int *map_rcolors(); |
20 |
|
|
|
21 |
|
|
extern Pixmap make_rpixmap(); |