GRASS 8 Programmer's Manual
8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
point.c
Go to the documentation of this file.
1
/*!
2
\file lib/pngdriver/point.c
3
4
\brief GRASS png display driver - draw point
5
6
(C) 2007-2014 by Glynn Clements and the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Glynn Clements
12
*/
13
14
#include <
grass/gis.h
>
15
#include "
pngdriver.h
"
16
17
/*!
18
\brief Draw point
19
*/
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
,
point_size
,
point_size
);
26
}
AMI_STREAM
Definition
ami_stream.h:153
gis.h
PNG_Box
void PNG_Box(double fx1, double fy1, double fx2, double fy2)
Draw a (filled) rectangle.
Definition
pngdriver/box.c:23
pngdriver.h
GRASS png display driver - header file.
PNG_Point
void PNG_Point(double x, double y)
Draw point.
Definition
point.c:20
x
#define x
lib
pngdriver
point.c
Generated on Sun Apr 5 2026 06:59:58 for GRASS 8 Programmer's Manual by
1.9.8