1 |
greg |
1.2 |
/* Copyright 1988 Regents of the University of California */ |
2 |
greg |
1.1 |
|
3 |
|
|
/* SCCSid "$SunId$ LBL" */ |
4 |
greg |
1.2 |
|
5 |
|
|
/* |
6 |
greg |
1.3 |
* xraster.h - header file for X routines using images. |
7 |
greg |
1.1 |
* |
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(); |