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
*/
22
void
PNG_Line_width
(
double
width)
23
{
24
png
.linewidth = (width < 0 ? 0 : (
int
)
floor
(width + 0.5));
25
}
AMI_STREAM
Definition
ami_stream.h:153
png
struct png_state png
Definition
pngdriver/graph_set.c:31
PNG_Line_width
void PNG_Line_width(double width)
Set line width.
Definition
pngdriver/line_width.c:22
pngdriver.h
GRASS png display driver - header file.
lib
pngdriver
line_width.c
Generated on Wed Sep 9 2026 06:57:42 for GRASS 8 Programmer's Manual by
1.9.8