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 */
23void PNG_Line_width(double width)
24{
25 png.linewidth = (width < 0 ? 0 : (int)floor(width + 0.5));
26}
struct png_state png
void PNG_Line_width(double width)
Set line width.
GRASS png display driver - header file.