GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
pngdriver/Draw_point.c
Go to the documentation of this file.
1 #include "pngdriver.h"
2 
3 void PNG_draw_point(int x, int y)
4 {
5  if (x < clip_left || x >= clip_rite || y < clip_top || y >= clip_bot)
6  return;
7 
8  grid[y * width + x] = currentColor;
9 
10  modified = 1;
11 }
int currentColor
int modified
tuple width
int clip_rite
unsigned char * grid
int y
Definition: plot.c:34
int clip_bot
double x
Definition: cnversions.c:36
void PNG_draw_point(int x, int y)