GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71759
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 }
GRASS png display driver - header file.
struct png_state png
int linewidth
Definition: pngdriver.h:49
void PNG_Line_width(double width)
Set line width.
int
Reads the categories file for map name in mapset and stores the categories in the pcats structure...