GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
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
}
pngdriver.h
GRASS png display driver - header file.
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
png_state::linewidth
int linewidth
Definition:
pngdriver.h:49
PNG_Line_width
void PNG_Line_width(double width)
Set line width.
Definition:
pngdriver/line_width.c:23
lib
pngdriver
line_width.c
Generated on Mon May 31 2021 05:21:30 for GRASS GIS 7 Programmer's Manual by
1.8.13