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