GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
Loading...
Searching...
No Matches
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)
 
#define max(a, b)
 

Functions

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

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

◆ min

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.

References b, png_state::clip_bot, png_state::clip_left, png_state::clip_rite, png_state::clip_top, cur_x, cur_y, png_state::current_color, g, png_state::grid, max, min, png_state::modified, png, png_get_color(), png_get_pixel(), r, png_state::true_color, png_state::width, and x.

Referenced by PNG_Driver().