Loading...
Searching...
No Matches
pngdriver/draw.c
Go to the documentation of this file.
/*!
\file lib/pngdriver/draw.c
\brief GRASS PNG display driver
(C) 2008 by Glynn Clements and the GRASS Development Team
This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.
\author Glynn Clements
*/
#include <grass/gis.h>
#include "driverlib.h"
#include "path.h"
#include "pngdriver.h"
static struct path path;
void PNG_Begin(void)
{
path_begin(&path);
}
void PNG_Move(double x, double y)
{
path_move(&path, x, y);
}
void PNG_Cont(double x, double y)
{
path_cont(&path, x, y);
}
void PNG_Close(void)
{
path_close(&path);
}
void PNG_Stroke(void)
{
path_stroke(&path, png_draw_line);
}
void PNG_Fill(void)
{
png_polygon(&path);
}
png_draw_line
void png_draw_line(double x1, double y1, double x2, double y2)
Definition draw_line.c:68
driverlib.h
path_close
void path_close(struct path *p)
Definition path.c:83
path_stroke
void path_stroke(struct path *p, void(*line)(double, double, double, double))
Definition path.c:96
path_begin
void path_begin(struct path *p)
Definition path.c:66
path_cont
void path_cont(struct path *p, double x, double y)
Definition path.c:78
path_move
void path_move(struct path *p, double x, double y)
Definition path.c:72
path.h
PNG_Close
void PNG_Close(void)
Definition pngdriver/draw.c:36
PNG_Begin
void PNG_Begin(void)
Definition pngdriver/draw.c:21
PNG_Cont
void PNG_Cont(double x, double y)
Definition pngdriver/draw.c:31
PNG_Move
void PNG_Move(double x, double y)
Definition pngdriver/draw.c:26
PNG_Stroke
void PNG_Stroke(void)
Definition pngdriver/draw.c:41
PNG_Fill
void PNG_Fill(void)
Definition pngdriver/draw.c:46
pngdriver.h
GRASS png display driver - header file.
png_polygon
void png_polygon(struct path *)
Draw polygon.
Definition pngdriver/polygon.c:135
path
Definition path.h:15
x
#define x