21 static unsigned char *put_2(
unsigned char *p,
unsigned int n)
29 static unsigned char *put_4(
unsigned char *p,
unsigned int n)
41 static void make_bmp_header(
unsigned char *p)
74 memset(header, 0,
sizeof(header));
75 make_bmp_header(header);
76 fwrite(header,
sizeof(header), 1,
output);
85 fputc((
unsigned char)
b,
output);
86 fputc((
unsigned char)
g,
output);
87 fputc((
unsigned char)
r,
output);
88 fputc((
unsigned char)a,
output);
void png_get_pixel(unsigned int pixel, int *r, int *g, int *b, int *a)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
GRASS png display driver - header file.
void output(const char *fmt,...)