GRASS GIS 7 Programmer's Manual  7.0.3(2016)-r00000
point.c
Go to the documentation of this file.
1 
14 #include <grass/gis.h>
15 #include "pngdriver.h"
16 
20 void PNG_Point(double x, double y)
21 {
22  static double point_size = 1.0;
23  double half_point_size = point_size / 2;
24 
25  PNG_Box(x - half_point_size, y - half_point_size,
26  point_size, point_size);
27 }
28 
GRASS png display driver - header file.
void PNG_Box(double fx1, double fy1, double fx2, double fy2)
Draw a (filled) rectangle.
Definition: pngdriver/box.c:24
void PNG_Point(double x, double y)
Draw point.
Definition: point.c:20