GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
GRASS png display driver - draw raster. More...
#include <string.h>
#include <math.h>
#include <grass/gis.h>
#include "driver.h"
#include "pngdriver.h"
Go to the source code of this file.
Macros | |
#define | min(a, b) ((a)<(b)?(a):(b)) |
#define | max(a, b) ((a)>(b)?(a):(b)) |
Functions | |
void | PNG_begin_raster (int mask, int s[2][2], double fd[2][2]) |
Start drawing raster. More... | |
int | PNG_raster (int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul) |
Draw raster row. More... | |
GRASS png display driver - draw raster.
(C) 2003-2014 by Per Henrik Johansen 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.
Definition in file pngdriver/raster.c.
Definition at line 25 of file pngdriver/raster.c.
Definition at line 22 of file pngdriver/raster.c.
void PNG_begin_raster | ( | int | mask, |
int | s[2][2], | ||
double | fd[2][2] | ||
) |
Start drawing raster.
mask | non-zero int for mask |
s | source (map) extent (left, right, top, bottom) |
fd | destination (image) extent (left, right, top, bottom) |
Definition at line 80 of file pngdriver/raster.c.
int PNG_raster | ( | int | n, |
int | row, | ||
const unsigned char * | red, | ||
const unsigned char * | grn, | ||
const unsigned char * | blu, | ||
const unsigned char * | nul | ||
) |
Draw raster row.
n | number of cells |
row | raster row (starts at 0) |
red,grn,blu,nul | red,green,blue and null value |
Definition at line 111 of file pngdriver/raster.c.