color_rule_get.c File Reference

#include <grass/gis.h>

Include dependency graph for color_rule_get.c:

Go to the source code of this file.

Functions

int G_colors_count (struct Colors *colors)
 get both modular and fixed rules count
int G_get_f_color_rule (DCELL *val1, unsigned char *r1, unsigned char *g1, unsigned char *b1, DCELL *val2, unsigned char *r2, unsigned char *g2, unsigned char *b2, struct Colors *colors, int rule)


Function Documentation

G_colors_count ( struct Colors *  colors  ) 

get both modular and fixed rules count

Returns:
number of rules in color table
Parameters:
colors pointer to color table structure

Definition at line 9 of file color_rule_get.c.

int G_get_f_color_rule ( DCELL *  val1,
unsigned char *  r1,
unsigned char *  g1,
unsigned char *  b1,
DCELL *  val2,
unsigned char *  r2,
unsigned char *  g2,
unsigned char *  b2,
struct Colors *  colors,
int  rule 
)

Definition at line 44 of file color_rule_get.c.


Generated on Sun Apr 6 17:32:17 2008 for GRASS by  doxygen 1.5.5