|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-8843f13794
|
Raster Library - Color range functions. More...

Go to the source code of this file.
Functions | |
| void | Rast_set_c_color_range (CELL min, CELL max, struct Colors *colors) |
| Set color range (CELL version) | |
| void | Rast_set_d_color_range (DCELL min, DCELL max, struct Colors *colors) |
| Set color range (DCELL version) | |
| void | Rast_get_c_color_range (CELL *min, CELL *max, const struct Colors *colors) |
| Get color range values (CELL) | |
| void | Rast_get_d_color_range (DCELL *min, DCELL *max, const struct Colors *colors) |
| Get color range values (DCELL) | |
Raster Library - Color range functions.
SPDX-FileCopyrightText: 2001-2009 GRASS Development Team SPDX-License-Identifier: GPL-2.0-or-later
Definition in file color_range.c.
Get color range values (CELL)
Returns min and max category in the range or huge numbers if the color table is defined on floating cell values and not on categories.
| [out] | min,max | minimum and maximum value |
| colors | pointer to Colors structure which holds color info |
Definition at line 62 of file color_range.c.
References Colors::cmax, Colors::cmin, Colors::is_float, max, and min.
Referenced by Gs_build_256lookup(), Rast_print_colors(), and Rast_print_json_colors().
Get color range values (DCELL)
Returns min and max category in the range or huge numbers if the color table is defined on floating cell values and not on categories.
| [out] | min,max | minimum and maximum value |
| colors | pointer to Colors structure which holds color info |
Definition at line 84 of file color_range.c.
References Colors::cmax, Colors::cmin, max, and min.
Referenced by Rast_abs_log_colors(), Rast_histogram_eq_colors(), Rast_histogram_eq_fp_colors(), and Rast_log_colors().
Set color range (CELL version)
| min,max | minimum and maximum value |
| colors | pointer to Colors structure which holds color info |
Definition at line 22 of file color_range.c.
References Colors::cmax, Colors::cmin, max, and min.
Referenced by Rast_make_random_colors().
Set color range (DCELL version)
| min,max | minimum and maximum value |
| colors | pointer to Colors structure which holds color info |
Definition at line 40 of file color_range.c.
References Colors::cmax, Colors::cmin, max, and min.