=================================================================== RCS file: /home/cvs/OpenXM_contrib/gnuplot/Attic/bitmap.h,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.3 diff -u -p -r1.1.1.1 -r1.1.1.3 --- OpenXM_contrib/gnuplot/Attic/bitmap.h 2000/01/09 17:00:49 1.1.1.1 +++ OpenXM_contrib/gnuplot/Attic/bitmap.h 2003/09/15 07:09:23 1.1.1.3 @@ -1,4 +1,4 @@ -/* $Id: bitmap.h,v 1.1.1.1 2000/01/09 17:00:49 maekawa Exp $ */ +/* $Id: bitmap.h,v 1.1.1.3 2003/09/15 07:09:23 ohara Exp $ */ /* GNUPLOT - bitmap.h */ @@ -32,6 +32,8 @@ * to the extent permitted by applicable law. ]*/ +#ifndef GNUPLOT_BITMAP_H +# define GNUPLOT_BITMAP_H /* allow up to 16 bit width for character array */ typedef unsigned int char_row; @@ -82,13 +84,26 @@ extern unsigned int b_pattern[]; extern int b_maskcount; extern unsigned int b_lastx, b_lasty; /* last pixel set - used by b_line */ +/* RGB colour table moved out of gif.trm */ +/* + * Common RGB color table for use by all devices. + * It's a subset of the 216-color Web palette. + */ +#define WEB_N_COLORS 99 +struct rgb +{ + unsigned char r, g, b; +}; +extern struct rgb web_color_rgbs[]; + + /* Prototypes from file "bitmap.c" */ void b_makebitmap __PROTO((unsigned int x, unsigned int y, unsigned int planes)); void b_freebitmap __PROTO((void)); void b_setpixel __PROTO((unsigned int x, unsigned int y, unsigned int value)); -/* unused unsigned int b_getpixel __PROTO((unsigned int x, unsigned int y)); */ +unsigned int b_getpixel __PROTO((unsigned int x, unsigned int y)); void b_line __PROTO((unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)); void b_setmaskpixel __PROTO((unsigned int x, unsigned int y, unsigned int value)); /* void b_putc __PROTO((unsigned int x, unsigned int y, char c, unsigned int angle)); */ @@ -100,3 +115,5 @@ void b_move __PROTO((unsigned int x, unsigned int y)); void b_vector __PROTO((unsigned int x, unsigned int y)); void b_put_text __PROTO((unsigned int x, unsigned int y, char *str)); int b_text_angle __PROTO((int ang)); + +#endif /* GNUPLOT_BITMAP_H */