GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pngdriver.h File Reference
#include <stdio.h>
#include <grass/config.h>
#include "driver.h"
Include dependency graph for pngdriver.h:
This graph shows which files directly or indirectly include this file:

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 driverPNG_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 intgrid
 
unsigned char png_palette [256][4]
 
unsigned int background
 
int modified
 
int linewidth
 

Macro Definition Documentation

#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.

Function Documentation

unsigned int get_color ( int  ,
int  ,
int  ,
int   
)
void get_pixel ( unsigned  int,
int ,
int ,
int ,
int  
)

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.

void PNG_begin_scaled_raster ( int  ,
int  [2][2],
int  [2][2] 
)

Definition at line 60 of file pngdriver/Raster.c.

Referenced by PNG_Driver().

void PNG_Box_abs ( int  ,
int  ,
int  ,
int   
)

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().

void PNG_draw_bitmap ( int  ,
int  ,
int  ,
const unsigned char *   
)
void PNG_draw_line ( int  ,
int  ,
int  ,
int   
)

Definition at line 101 of file pngdriver/Draw_line.c.

References linewidth, and modified.

Referenced by PNG_Driver().

void PNG_draw_point ( int  ,
int   
)

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().

void PNG_Line_width ( int  )

Definition at line 5 of file pngdriver/Line_width.c.

References linewidth, and dialogs::width.

Referenced by PNG_Driver().

int PNG_lookup_color ( int  ,
int  ,
int   
)

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().

void PNG_Set_window ( int  ,
int  ,
int  ,
int   
)

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  )
void read_pgm ( void  )
void read_png ( void  )
void read_ppm ( void  )
void write_bmp ( void  )
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  )
void write_ppm ( void  )

Variable Documentation

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_left

Definition at line 33 of file pngdriver/Graph_set.c.

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
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.