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