GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72274
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
color_out.c File Reference

Raster Library - Print color table. More...

#include <grass/raster.h>
Include dependency graph for color_out.c:

Go to the source code of this file.

Functions

void Rast_print_colors (struct Colors *colors, DCELL min, DCELL max, FILE *fp, int perc)
 Print color table. More...
 

Detailed Description

Raster Library - Print color table.

(C) 2010-2011 by 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
Glynn Clements

Definition in file color_out.c.

Function Documentation

void Rast_print_colors ( struct Colors colors,
DCELL  min,
DCELL  max,
FILE *  fp,
int  perc 
)

Print color table.

Parameters
colorspointer to Colors structure
min,maxminimum and maximum value for percentage output (used only when perc is non-zero)
fpfile where to print color table rules
percTRUE for percentage output

Definition at line 41 of file color_out.c.

References b, count, fclose(), g, r, Rast_colors_count(), Rast_get_c_color_range(), Rast_get_default_color(), Rast_get_fp_color_rule(), Rast_get_null_value_color(), Rast_lookup_c_colors(), _Color_Info_::set, val1, val2, and Colors::version.