Main Page | Modules | Data Structures | File List | Data Fields

Image CGI


Functions

void usage (const char *exec)
long make_status_color (float degree)
ssize_t main (ssize_t argc, char **argv)

Detailed Description

Image is a simple program that can be invoked to generate colored, rectangular images for use as status symbols in a web page or some other front end for processign information. Image is nice because it's flexible and can generate linear fades between colors (for example, between red and green) for varrying degrees of health. See the web site for more details on its use.

Function Documentation

ssize_t main ssize_t  argc,
char **  argv
 

Main Entry Function

Parameters:
argc The number of command line options.
argv An array of all of our command line options.
Returns:
Non zero if some kind of error occurs.

long make_status_color float  degree  ) 
 

Calculates a status color given the degree. A status color is a fade between a red color and a green, to indicate health.

Parameters:
degree A value between 0 and 1.
Returns:
The resulting color.

void usage const char *  exec  ) 
 

Prints the usage information for this executable.


Generated on Wed Apr 28 09:38:38 2004 for State by doxygen 1.3.5