GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-77aab223bc
pngdriver/line_width.c
Go to the documentation of this file.
1
/*!
2
\file lib/pngdriver/line_width.c
3
4
\brief GRASS png display driver - set line width
5
6
(C) 2003-2014 by Per Henrik Johansen 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 Per Henrik Johansen (original contributor)
12
\author Glynn Clements
13
*/
14
15
#include <math.h>
16
#include "
pngdriver.h
"
17
18
/*!
19
\brief Set line width
20
21
\param width line width (double precision)
22
*/
23
void
PNG_Line_width
(
double
width)
24
{
25
png
.
linewidth
= (width < 0 ? 0 : (int)floor(width + 0.5));
26
}
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
PNG_Line_width
void PNG_Line_width(double width)
Set line width.
Definition:
pngdriver/line_width.c:23
pngdriver.h
GRASS png display driver - header file.
png_state::linewidth
int linewidth
Definition:
pngdriver.h:48
lib
pngdriver
line_width.c
Generated on Thu Nov 14 2024 07:00:12 for GRASS GIS 8 Programmer's Manual by
1.9.1