1 #ifndef __PNGDRIVER_H__
2 #define __PNGDRIVER_H__
6 #include <grass/config.h>
9 #define FILE_NAME "map.png"
11 #define HEADER_SIZE 64
22 extern unsigned int *
grid;
42 extern unsigned int get_color(
int,
int,
int,
int);
43 extern void get_pixel(
unsigned int,
int *,
int *,
int *,
int *);
55 const unsigned char *,
const unsigned char *,
56 const unsigned char *);
void PNG_draw_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
void PNG_Client_Close(void)
void get_pixel(unsigned int pixel, int *r, int *g, int *b, int *a)
void PNG_Graph_close(void)
void PNG_color(int number)
void PNG_Line_width(int width)
void PNG_Set_window(int, int, int, int)
void PNG_Box_abs(int x1, int y1, int x2, int y2)
struct driver * PNG_Driver(void)
int PNG_Graph_set(int argc, char **argv)
void init_color_table(void)
void PNG_begin_scaled_raster(int, int[2][2], int[2][2])
void PNG_draw_line(int x1, int y1, int x2, int y2)
unsigned char png_palette[256][4]
int PNG_scaled_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
int PNG_lookup_color(int r, int g, int b)
unsigned int get_color(int r, int g, int b, int a)
void PNG_draw_point(int x, int y)