GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
pngdriver/draw_bitmap.c File Reference

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

#include <math.h>
#include "pngdriver.h"
Include dependency graph for pngdriver/draw_bitmap.c:

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_draw_bitmap (int ncols, int nrows, int threshold, const unsigned char *buf)
 Draw bitmap. More...
 

Detailed Description

GRASS png display driver - draw bitmap.

(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.

Author
Per Henrik Johansen (original contributor)
Glynn Clements

Definition in file pngdriver/draw_bitmap.c.

Macro Definition Documentation

◆ max

#define max (   a,
  b 
)    ((a)>(b)?(a):(b))

Definition at line 22 of file pngdriver/draw_bitmap.c.

◆ min

#define min (   a,
  b 
)    ((a)<(b)?(a):(b))

Definition at line 19 of file pngdriver/draw_bitmap.c.

Function Documentation

◆ PNG_draw_bitmap()

void PNG_draw_bitmap ( int  ncols,
int  nrows,
int  threshold,
const unsigned char *  buf 
)

Draw bitmap.

Parameters
ncols,nrowsnumber of columns and rows
thresholdthreshold value
bufdata buffer

Definition at line 33 of file pngdriver/draw_bitmap.c.