GRASS 8 Programmer's Manual 8.6.0dev(2026)-8843f13794
Loading...
Searching...
No Matches
polygon.c File Reference

GRASS png display driver - draw polygon. More...

#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include "path.h"
#include "pngdriver.h"
Include dependency graph for pngdriver/polygon.c:

Go to the source code of this file.

Functions

void png_polygon (struct path *p)
 Draw polygon.
 

Detailed Description

GRASS png display driver - draw polygon.

SPDX-FileCopyrightText: 2003-2014 Per Henrik Johansen SPDX-FileCopyrightText: GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later

Author
Per Henrik Johansen (original contributor)
Glynn Clements

Definition in file pngdriver/polygon.c.

Function Documentation

◆ png_polygon()

void png_polygon ( struct path p)

Draw polygon.

Definition at line 134 of file pngdriver/polygon.c.

References path::count, P_CLOSE, path_close(), png, and path::vertices.

Referenced by png_draw_line(), and PNG_Fill().