GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Go to the documentation of this file.
1 #ifndef __PNGDRIVER_H__
2 #define __PNGDRIVER_H__
4 #include <stdio.h>
6 #include <grass/config.h>
7 #include "driver.h"
9 #define FILE_NAME "map.png"
11 #define HEADER_SIZE 64
13 extern char *file_name;
14 extern int currentColor;
15 extern int true_color;
16 extern int auto_write;
17 extern int has_alpha;
18 extern int mapped;
20 extern int clip_top, clip_bot, clip_left, clip_rite;
21 extern int width, height;
22 extern unsigned int *grid;
23 extern unsigned char png_palette[256][4];
24 extern unsigned int background;
25 extern int modified;
27 extern int linewidth;
29 extern void read_image(void);
30 extern void read_ppm(void);
31 extern void read_pgm(void);
32 extern void read_bmp(void);
33 extern void read_png(void);
35 extern void write_image(void);
36 extern void write_ppm(void);
37 extern void write_pgm(void);
38 extern void write_bmp(void);
39 extern void write_png(void);
41 extern void init_color_table(void);
42 extern unsigned int get_color(int, int, int, int);
43 extern void get_pixel(unsigned int, int *, int *, int *, int *);
45 extern const struct driver *PNG_Driver(void);
47 extern void PNG_Box_abs(int, int, int, int);
48 extern void PNG_Client_Close(void);
49 extern void PNG_Erase(void);
50 extern void PNG_Graph_close(void);
51 extern int PNG_Graph_set(int, char **);
52 extern void PNG_Line_width(int);
53 extern void PNG_begin_scaled_raster(int, int[2][2], int[2][2]);
54 extern int PNG_scaled_raster(int, int, const unsigned char *,
55  const unsigned char *, const unsigned char *,
56  const unsigned char *);
57 extern void PNG_Respond(void);
58 extern void PNG_Set_window(int, int, int, int);
59 extern void PNG_color(int);
60 extern void PNG_draw_bitmap(int, int, int, const unsigned char *);
61 extern void PNG_draw_line(int, int, int, int);
62 extern void PNG_draw_point(int, int);
63 extern int PNG_lookup_color(int, int, int);
65 #endif /* __PNGDRIVER_H__ */
void write_pgm(void)
void PNG_draw_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
void PNG_Client_Close(void)
int has_alpha
int currentColor
void get_pixel(unsigned int pixel, int *r, int *g, int *b, int *a)
void write_png(void)
Definition: write_png.c:41
void PNG_Graph_close(void)
int modified
tuple width
void write_bmp(void)
void PNG_color(int number)
int clip_rite
unsigned char * grid
void PNG_Line_width(int width)
int clip_bot
int true_color
void PNG_Set_window(int, int, int, int)
void PNG_Erase(void)
void PNG_Box_abs(int x1, int y1, int x2, int y2)
Definition: pngdriver/Box.c:4
int clip_top
void write_image(void)
struct driver * PNG_Driver(void)
int PNG_Graph_set(int argc, char **argv)
void init_color_table(void)
void write_ppm(void)
char * file_name
unsigned int background
void PNG_begin_scaled_raster(int, int[2][2], int[2][2])
void PNG_Respond(void)
int linewidth
void PNG_draw_line(int x1, int y1, int x2, int y2)
int auto_write
Definition: cairodriver.h:44
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 clip_left
Definition: driver.h:25
int mapped
void read_ppm(void)
int PNG_lookup_color(int r, int g, int b)
unsigned int get_color(int r, int g, int b, int a)
void read_png(void)
Definition: read_png.c:31
int height
void PNG_draw_point(int x, int y)
void read_image(void)
void read_bmp(void)
void read_pgm(void)