GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Go to the source code of this file.
Macros | |
#define | FILE_NAME "map.png" |
#define | HEADER_SIZE 64 |
Functions | |
void | read_image (void) |
void | read_ppm (void) |
void | read_pgm (void) |
void | read_bmp (void) |
void | read_png (void) |
void | write_image (void) |
void | write_ppm (void) |
void | write_pgm (void) |
void | write_bmp (void) |
void | write_png (void) |
void | init_color_table (void) |
unsigned int | get_color (int, int, int, int) |
void | get_pixel (unsigned int, int *, int *, int *, int *) |
struct driver * | PNG_Driver (void) |
void | PNG_Box_abs (int, int, int, int) |
void | PNG_Client_Close (void) |
void | PNG_Erase (void) |
void | PNG_Graph_close (void) |
int | PNG_Graph_set (int, char **) |
void | PNG_Line_width (int) |
void | PNG_begin_scaled_raster (int, int[2][2], int[2][2]) |
int | PNG_scaled_raster (int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *) |
void | PNG_Respond (void) |
void | PNG_Set_window (int, int, int, int) |
void | PNG_color (int) |
void | PNG_draw_bitmap (int, int, int, const unsigned char *) |
void | PNG_draw_line (int, int, int, int) |
void | PNG_draw_point (int, int) |
int | PNG_lookup_color (int, int, int) |
Variables | |
char * | file_name |
int | currentColor |
int | true_color |
int | auto_write |
int | has_alpha |
int | mapped |
int | clip_top |
int | clip_bot |
int | clip_left |
int | clip_rite |
int | width |
int | height |
unsigned int * | grid |
unsigned char | png_palette [256][4] |
unsigned int | background |
int | modified |
int | linewidth |
#define FILE_NAME "map.png" |
Definition at line 9 of file pngdriver.h.
Referenced by PNG_Graph_set(), and PS_Graph_set().
#define HEADER_SIZE 64 |
Definition at line 11 of file pngdriver.h.
Definition at line 124 of file pngdriver/Color_table.c.
References true_color.
Referenced by PNG_color(), PNG_draw_bitmap(), PNG_Graph_set(), PNG_scaled_raster(), read_bmp(), read_pgm(), read_png(), and read_ppm().
Definition at line 116 of file pngdriver/Color_table.c.
References true_color.
Referenced by PNG_draw_bitmap(), write_bmp(), write_pgm(), write_png(), and write_ppm().
void init_color_table | ( | void | ) |
Definition at line 77 of file pngdriver/Color_table.c.
Definition at line 60 of file pngdriver/Raster.c.
Referenced by PNG_Driver().
Definition at line 4 of file pngdriver/Box.c.
References clip_bot, clip_left, clip_rite, clip_top, currentColor, grid, height, modified, dialogs::width, and y.
Referenced by PNG_Driver().
void PNG_Client_Close | ( | void | ) |
Definition at line 4 of file pngdriver/Client.c.
References auto_write, and write_image().
Referenced by PNG_Driver().
void PNG_color | ( | int | ) |
Definition at line 12 of file pngdriver/Color.c.
References b, currentColor, g, G_warning(), get_color(), NCOLORS, r, and true_color.
Referenced by PNG_Driver().
Definition at line 20 of file pngdriver/Draw_bitmap.c.
References b, clip_bot, clip_left, clip_rite, clip_top, cur_x, cur_y, currentColor, g, get_color(), get_pixel(), grid, max, min, modified, r, true_color, dialogs::width, vector::x, and y.
Referenced by PNG_Driver().
Definition at line 101 of file pngdriver/Draw_line.c.
References linewidth, and modified.
Referenced by PNG_Driver().
Definition at line 3 of file pngdriver/Draw_point.c.
References clip_bot, clip_rite, currentColor, grid, modified, dialogs::width, and vector::x.
Referenced by PNG_Driver().
struct driver* PNG_Driver | ( | void | ) |
Definition at line 22 of file pngdriver/Driver.c.
void PNG_Erase | ( | void | ) |
Definition at line 3 of file pngdriver/Erase.c.
References background, grid, height, modified, n, and dialogs::width.
Referenced by PNG_Driver(), and PNG_Graph_set().
void PNG_Graph_close | ( | void | ) |
Definition at line 32 of file pngdriver/Graph_close.c.
References G_free(), grid, mapped, and write_image().
Referenced by PNG_Driver().
Definition at line 66 of file pngdriver/Graph_set.c.
References auto_write, background, clip_bot, clip_left, clip_rite, clip_top, FILE_NAME, file_name, G_message(), G_strcasecmp(), get_color(), getenv(), grid, has_alpha, height, init_color_table(), mapped, modified, PNG_Erase(), read_image(), screen_bottom, screen_left, screen_right, screen_top, true_color, dialogs::width, and write_image().
Referenced by PNG_Driver().
void PNG_Line_width | ( | int | ) |
Definition at line 5 of file pngdriver/Line_width.c.
References linewidth, and dialogs::width.
Referenced by PNG_Driver().
Definition at line 130 of file pngdriver/Color_table.c.
References b, g, has_alpha, r, and true_color.
Referenced by PNG_Driver().
void PNG_Respond | ( | void | ) |
Definition at line 4 of file pngdriver/Respond.c.
References auto_write, and write_image().
Referenced by PNG_Driver().
int PNG_scaled_raster | ( | int | , |
int | , | ||
const unsigned char * | , | ||
const unsigned char * | , | ||
const unsigned char * | , | ||
const unsigned char * | |||
) |
Definition at line 76 of file pngdriver/Raster.c.
References clip_bot, clip_left, clip_rite, clip_top, get_color(), grid, max, min, modified, dialogs::width, and y.
Referenced by PNG_Driver().
Definition at line 22 of file pngdriver/Set_window.c.
References clip_bot, clip_left, clip_rite, clip_top, screen_bottom, screen_left, screen_right, and screen_top.
Referenced by PNG_Driver().
void read_bmp | ( | void | ) |
Definition at line 67 of file cairodriver/read_bmp.c.
References b, fclose(), file_name, g, G_fatal_error(), get_color(), grid, HEADER_SIZE, height, r, stride, true_color, dialogs::width, and y.
void read_image | ( | void | ) |
Definition at line 3 of file cairodriver/read.c.
References cairo, file_name, file_type, FTYPE_BMP, FTYPE_PNG, FTYPE_PPM, G_debug(), G_fatal_error(), G_strcasecmp(), has_alpha, modified, read_bmp(), read_pgm(), read_png(), read_ppm(), and tools::surface.
void read_pgm | ( | void | ) |
Definition at line 56 of file pngdriver/read_ppm.c.
References fclose(), file_name, G_fatal_error(), G_free(), G_store(), get_color(), grid, height, true_color, dialogs::width, and y.
Referenced by read_image().
void read_png | ( | void | ) |
Definition at line 31 of file read_png.c.
References b, fclose(), file_name, g, G_fatal_error(), G_free(), get_color(), grid, has_alpha, height, NULL, png_palette, forms::q, r, trans, true_color, dialogs::width, and y.
Referenced by read_image().
void read_ppm | ( | void | ) |
Definition at line 3 of file cairodriver/read_ppm.c.
References b, fclose(), file_name, g, G_fatal_error(), G_free(), G_store(), get_color(), grid, height, r, stride, true_color, dialogs::width, and y.
void write_bmp | ( | void | ) |
Definition at line 51 of file cairodriver/write_bmp.c.
References b, fclose(), file_name, g, G_fatal_error(), get_pixel(), grid, HEADER_SIZE, height, output(), r, stride, dialogs::width, and y.
void write_image | ( | void | ) |
Definition at line 8 of file cairodriver/write.c.
References cairo, file_name, file_type, FTYPE_BMP, FTYPE_PNG, FTYPE_PPM, FTYPE_X11, G_debug(), G_fatal_error(), G_strcasecmp(), has_alpha, mapped, modified, tools::surface, write_bmp(), write_pgm(), write_png(), and write_ppm().
void write_pgm | ( | void | ) |
Definition at line 37 of file pngdriver/write_ppm.c.
References b, fclose(), file_name, g, G_fatal_error(), G_free(), G_store(), get_pixel(), grid, height, output(), r, dialogs::width, and y.
Referenced by write_image().
void write_png | ( | void | ) |
Definition at line 41 of file write_png.c.
References b, fclose(), file_name, g, G_fatal_error(), G_free(), get_pixel(), getenv(), grid, has_alpha, height, NULL, output(), png_palette, forms::q, r, trans, true_color, dialogs::width, and y.
Referenced by write_image().
void write_ppm | ( | void | ) |
Definition at line 3 of file cairodriver/write_ppm.c.
References b, fclose(), file_name, g, G_fatal_error(), G_free(), G_store(), get_pixel(), grid, height, output(), r, stride, dialogs::width, and y.
int auto_write |
Definition at line 52 of file cairodriver/Graph.c.
unsigned int background |
Definition at line 38 of file pngdriver/Graph_set.c.
Referenced by PNG_Erase(), and PNG_Graph_set().
int clip_bot |
Definition at line 33 of file pngdriver/Graph_set.c.
Referenced by PNG_Box_abs(), PNG_draw_bitmap(), PNG_draw_point(), PNG_Graph_set(), PNG_scaled_raster(), and PNG_Set_window().
int clip_left |
Definition at line 33 of file pngdriver/Graph_set.c.
int clip_rite |
Definition at line 33 of file pngdriver/Graph_set.c.
Referenced by PNG_Box_abs(), PNG_draw_bitmap(), PNG_draw_point(), PNG_Graph_set(), PNG_scaled_raster(), and PNG_Set_window().
int clip_top |
Definition at line 33 of file pngdriver/Graph_set.c.
int currentColor |
Definition at line 27 of file pngdriver/Graph_set.c.
Referenced by PNG_Box_abs(), PNG_color(), PNG_draw_bitmap(), and PNG_draw_point().
char* file_name |
Definition at line 46 of file cairodriver/Graph.c.
unsigned int* grid |
Definition at line 50 of file cairodriver/Graph.c.
int has_alpha |
Definition at line 30 of file pngdriver/Graph_set.c.
Referenced by PNG_Graph_set(), PNG_lookup_color(), read_image(), read_png(), write_image(), and write_png().
int height |
Definition at line 49 of file cairodriver/Graph.c.
int linewidth |
Definition at line 3 of file pngdriver/Line_width.c.
Referenced by PNG_draw_line(), and PNG_Line_width().
int mapped |
Definition at line 53 of file cairodriver/Graph.c.
int modified |
Definition at line 51 of file cairodriver/Graph.c.
unsigned char png_palette[256][4] |
Definition at line 37 of file pngdriver/Graph_set.c.
Referenced by read_png(), and write_png().
int true_color |
Definition at line 28 of file pngdriver/Graph_set.c.
int width |
Definition at line 2959 of file psmap/dialogs.py.