home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
RADIANCE
/
SRC
/
COMMON
/
XRASTER.H
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-07
|
675b
|
27 lines
/* Copyright 1988 Regents of the University of California */
/* SCCSid "@(#)xraster.h 2.1 11/12/91 LBL" */
/*
* xraster.h - header file for X routines using images.
*
* 2/18/88
*/
typedef struct {
int width, height; /* image size */
int ncolors; /* number of colors */
union {
unsigned short *m; /* monochrome */
unsigned char *bz; /* color */
} data; /* storage on our side */
Pixmap pm; /* storage on server side */
Color *cdefs; /* color definitions */
int *pmap; /* inverse pixel mapping */
int *pixels; /* allocated table entries */
} XRASTER;
extern int *map_rcolors();
extern Pixmap make_rpixmap();