GRASS 8 Programmer's Manual 8.6.0dev(2026)-1878fdfec5
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 SPDX-FileCopyrightText: 2003-2014 Per Henrik Johansen
7 SPDX-FileCopyrightText: GRASS Development Team
8 SPDX-License-Identifier: GPL-2.0-or-later
9
10 \author Per Henrik Johansen (original contributor)
11 \author Glynn Clements
12 */
13
14#include <math.h>
15#include "pngdriver.h"
16
17/*!
18 \brief Set line width
19
20 \param width line width (double precision)
21 */
22void PNG_Line_width(double width)
23{
24 png.linewidth = (width < 0 ? 0 : (int)floor(width + 0.5));
25}
struct png_state png
void PNG_Line_width(double width)
Set line width.
GRASS png display driver - header file.