|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
#include <grass/gis.h>
Go to the source code of this file.
Functions | |
| int | G_set_color (CELL cat, int r, int g, int b, struct Colors *colors) |
| set a category color | |
| int | G_set_d_color (DCELL val, int r, int g, int b, struct Colors *colors) |
| int | G_set_null_value_color (int red, int grn, int blu, struct Colors *colors) |
| Sets the color (in colors) for the NULL-value to r,g,b. | |
| int | G_set_default_color (int red, int grn, int blu, struct Colors *colors) |
| Sets the default color (in colors) to r,g,b. This is the color for values which do not have an explicit rule. | |
| int G_set_color | ( | CELL | cat, |
| int | r, | ||
| int | g, | ||
| int | b, | ||
| struct Colors * | colors | ||
| ) |
set a category color
The red, green, and blue intensities for the color associated with category cat are set in the colors structure. The intensities must be in the range 0 - 255. Values below zero are set as zero, values above 255 are set as
| cat | |
| red | |
| green | |
| blue | |
| colors |
Definition at line 28 of file color_set.c.
References G_add_color_rule(), G_is_c_null_value(), and G_set_null_value_color().
| int G_set_d_color | ( | DCELL | val, |
| int | r, | ||
| int | g, | ||
| int | b, | ||
| struct Colors * | colors | ||
| ) |
Definition at line 37 of file color_set.c.
References G_add_d_raster_color_rule(), G_is_d_null_value(), G_set_null_value_color(), and rule::val.
Referenced by G_read_color_rules().
| int G_set_default_color | ( | int | red, |
| int | grn, | ||
| int | blu, | ||
| struct Colors * | colors | ||
| ) |
Sets the default color (in colors) to r,g,b. This is the color for values which do not have an explicit rule.
| r | |
| g | |
| b | |
| colors |
Definition at line 82 of file color_set.c.
Referenced by G_abs_log_colors(), G_histogram_eq_colors(), G_histogram_eq_colors_fp(), G_log_colors(), and G_read_color_rules().
| int G_set_null_value_color | ( | int | red, |
| int | grn, | ||
| int | blu, | ||
| struct Colors * | colors | ||
| ) |
Sets the color (in colors) for the NULL-value to r,g,b.
| r | |
| g | |
| b | |
| colors |
Definition at line 59 of file color_set.c.
Referenced by G_abs_log_colors(), G_histogram_eq_colors(), G_histogram_eq_colors_fp(), G_log_colors(), G_make_histogram_eq_colors(), G_make_histogram_log_colors(), G_read_color_rules(), G_set_color(), and G_set_d_color().