34static void map_file(
void)
88 unsigned int red, grn, blu;
95 p =
getenv(
"GRASS_RENDER_FILE");
98 G_debug(1,
"png: GRASS_RENDER_FILE: %s", p);
102 p =
getenv(
"GRASS_RENDER_TRUECOLOR");
103 png.true_color = !p ||
strcmp(p,
"FALSE") != 0;
106 :
_(
"png: truecolor status disabled"));
108 p =
getenv(
"GRASS_RENDER_FILE_MAPPED");
118 p =
getenv(
"GRASS_RENDER_FILE_READ");
128 png.clip_bot =
png.height;
130 png.clip_rite =
png.width;
132 p =
getenv(
"GRASS_RENDER_TRANSPARENT");
133 png.has_alpha = p &&
strcmp(p,
"TRUE") == 0;
137 p =
getenv(
"GRASS_RENDER_BACKGROUNDCOLOR");
139 (
sscanf(p,
"%02x%02x%02x", &red, &grn, &blu) == 3 ||
186 return png.file_name;
unsigned int png_get_color(int r, int g, int b, int a)
void png_init_color_table(void)
int G_str_to_color(const char *, int *, int *, int *)
Parse color string and set red,green,blue.
void G_free(void *)
Free allocated memory.
void void G_verbose_message(const char *,...) __attribute__((format(printf
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
int G_debug(int, const char *,...) __attribute__((format(printf
Header file for msvc/fcntl.c.
void PNG_Erase(void)
Erase screen.
int PNG_Graph_set(void)
Start up graphics processing.
const char * PNG_Graph_get_file(void)
Get render file.
GRASS png display driver - header file.