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