GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
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

◆ Rast_print_colors()

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 42 of file color_out.c.