GRASS GIS 7 Programmer's Manual
7.0.4(2016)-r00000
|
GRASS png display driver - draw bitmap. More...
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... | |
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.
Definition in file pngdriver/draw_bitmap.c.
Definition at line 22 of file pngdriver/draw_bitmap.c.
Referenced by AS_class_discont(), AS_class_frequencies(), AS_class_interval(), c_max(), c_maxx(), c_mode(), c_range(), Cdhc_extreme(), G__wps_print_process_description(), G_ls_format(), G_math_d_max_norm(), G_math_f_max_norm(), G_math_i_max_norm(), Gs_build_256lookup(), Gs_numtype(), Gs_update_attrange(), gsd_do_scale(), gsd_model2real(), gsd_model2surf(), gsd_put_legend(), gsd_real2model(), gsd_surf2model(), gvl_file_newh(), iso_calc_cube(), Nviz_draw_all_surf(), Nviz_set_attr(), Nviz_set_volume_attr_default(), PNG_draw_bitmap(), w_max(), and w_mode().
Definition at line 19 of file pngdriver/draw_bitmap.c.
Referenced by AS_class_discont(), AS_class_frequencies(), AS_class_interval(), c_min(), c_minx(), c_range(), Cdhc_extreme(), G__wps_print_process_description(), Gs_build_256lookup(), gs_get_zextents(), Gs_numtype(), Gs_update_attrange(), gsd_do_scale(), gsd_model2real(), gsd_model2surf(), gsd_put_legend(), gsd_real2model(), gsd_surf2model(), gvl_file_newh(), I_cluster_reassign(), iso_calc_cube(), PNG_draw_bitmap(), and w_min().
void PNG_draw_bitmap | ( | int | ncols, |
int | nrows, | ||
int | threshold, | ||
const unsigned char * | buf | ||
) |
Draw bitmap.
ncols,nrows | number of columns and rows |
threshold | threshold value |
buf | data 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, and png_state::width.
Referenced by PNG_Driver().