GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
pngdriver/erase.c
Go to the documentation of this file.
1
/*!
2
\file lib/pngdriver/erase.c
3
4
\brief GRASS png display driver - erase screen
5
6
(C) 2003-2014 by Per Henrik Johansen and the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Per Henrik Johansen (original contributor)
12
\author Glynn Clements
13
*/
14
15
#include "
pngdriver.h
"
16
17
/*!
18
\brief Erase screen
19
*/
20
void
PNG_Erase
(
void
)
21
{
22
int
n =
png
.
width
*
png
.
height
;
23
int
i;
24
25
for
(i = 0; i < n; i++)
26
png
.
grid
[i] =
png
.
background
;
27
28
png
.
modified
= 1;
29
}
png_state::width
int width
Definition:
pngdriver.h:43
pngdriver.h
GRASS png display driver - header file.
png_state::height
int height
Definition:
pngdriver.h:43
png
struct png_state png
Definition:
pngdriver/graph_set.c:32
PNG_Erase
void PNG_Erase(void)
Erase screen.
Definition:
pngdriver/erase.c:20
png_state::modified
int modified
Definition:
pngdriver.h:47
png_state::grid
unsigned int * grid
Definition:
pngdriver.h:44
png_state::background
unsigned int background
Definition:
pngdriver.h:46
lib
pngdriver
erase.c
Generated on Tue Feb 14 2023 05:55:59 for GRASS GIS 8 Programmer's Manual by
1.8.13