GRASS 8 Programmer's Manual
8.6.0dev(2026)-55de52a352
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
SPDX-FileCopyrightText: 2007-2014 Glynn Clements
7
SPDX-FileCopyrightText: GRASS Development Team
8
SPDX-License-Identifier: GPL-2.0-or-later
9
10
\author Glynn Clements
11
*/
12
13
#include <
grass/gis.h
>
14
#include "
pngdriver.h
"
15
16
/*!
17
\brief Draw point
18
*/
19
void
PNG_Point
(
double
x,
double
y)
20
{
21
static
double
point_size
= 1.0;
22
double
half_point_size
=
point_size
/ 2;
23
24
PNG_Box
(
x
-
half_point_size
, y -
half_point_size
,
point_size
,
point_size
);
25
}
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:22
pngdriver.h
GRASS png display driver - header file.
PNG_Point
void PNG_Point(double x, double y)
Draw point.
Definition
point.c:19
x
#define x
lib
pngdriver
point.c
Generated on Thu Sep 10 2026 06:57:38 for GRASS 8 Programmer's Manual by
1.9.8