GRASS GIS 8 Programmer's Manual
8.4.1(2025)-45ca3179ab
Loading...
Searching...
No Matches
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.
pngdriver
line_width.c
Generated on Sat Jun 21 2025 21:07:27 for GRASS GIS 8 Programmer's Manual by
1.13.2