GRASS 8 Programmer's Manual 8.6.0dev(2026)-1878fdfec5
Loading...
Searching...
No Matches
pngdriver/draw.c
Go to the documentation of this file.
1/*!
2 \file lib/pngdriver/draw.c
3
4 \brief GRASS PNG display driver
5
6 SPDX-FileCopyrightText: 2008 Glynn Clements
7 SPDX-FileCopyrightText: GRASS Development Team
8 SPDX-License-Identifier: GPL-2.0-or-later
9
10 \author Glynn Clements
11 */
12
13#include <grass/gis.h>
14#include "driverlib.h"
15#include "path.h"
16#include "pngdriver.h"
17
18static struct path path;
19
20void PNG_Begin(void)
21{
23}
24
25void PNG_Move(double x, double y)
26{
27 path_move(&path, x, y);
28}
29
30void PNG_Cont(double x, double y)
31{
32 path_cont(&path, x, y);
33}
34
35void PNG_Close(void)
36{
38}
39
40void PNG_Stroke(void)
41{
43}
44
45void PNG_Fill(void)
46{
48}
void png_draw_line(double x1, double y1, double x2, double y2)
Definition draw_line.c:68
void path_close(struct path *p)
Definition driver/path.c:83
void path_stroke(struct path *p, void(*line)(double, double, double, double))
Definition driver/path.c:96
void path_begin(struct path *p)
Definition driver/path.c:66
void path_cont(struct path *p, double x, double y)
Definition driver/path.c:78
void path_move(struct path *p, double x, double y)
Definition driver/path.c:72
void PNG_Close(void)
void PNG_Begin(void)
void PNG_Cont(double x, double y)
void PNG_Move(double x, double y)
void PNG_Stroke(void)
void PNG_Fill(void)
GRASS png display driver - header file.
void png_polygon(struct path *)
Draw polygon.
Definition path.h:15
#define x