GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cairodriver/Draw_bitmap.c File Reference

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

#include <grass/glocale.h>
#include "cairodriver.h"
Include dependency graph for cairodriver/Draw_bitmap.c:

Go to the source code of this file.

Functions

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

Detailed Description

GRASS cairo display driver - draw bitmap.

(C) 2007-2010 by Lars Ahlzen 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
Lars Ahlzen <lars ahlzen.com> (original contibutor)
Glynn Clements

Definition in file cairodriver/Draw_bitmap.c.

Function Documentation

void Cairo_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 26 of file cairodriver/Draw_bitmap.c.

References cairo, cur_x, cur_y, menudata::data, G_debug(), G_fatal_error(), malloc(), modified, and stride.

Referenced by Cairo_Driver().