34 for (x = 0; x <
png.
width; x++, p++) {
40 fputc((
unsigned char)r, output);
41 fputc((
unsigned char)g, output);
42 fputc((
unsigned char)b, output);
56 mask_name[strlen(mask_name) - 2] =
'g';
58 output = fopen(mask_name,
"wb");
67 for (x = 0; x <
png.
width; x++, p++) {
73 fputc((
unsigned char)(255 - a), output);
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
GRASS png display driver - header file.
void G_free(void *)
Free allocated memory.
void png_get_pixel(unsigned int pixel, int *r, int *g, int *b, int *a)
void output(const char *fmt,...)
char * G_store(const char *)
Copy string to allocated memory.