color.c File Reference

Implementation of the Color functions. More...

#include "color.h"

Include dependency graph for color.c:

Go to the source code of this file.

Functions

jobject convertColor (const Color *color)
 Converts a Color struct to a Java Color-Object.
Color convertJavaColor (jobject color)
 Converts a Java Color-Object to a Color struct.


Detailed Description

Implementation of the Color functions.

This Color structure is an "equivalent" to the Java color. It holds the same values namely red, green, blue and alpha. Each value can be a number from 0 to 255. An alpha value of 0 means transparent and an alpha value of 255 means opaque.

Author:
Stefan Gruber
Date:
13.01.2005

Definition in file color.c.


Function Documentation

jobject convertColor const Color color  ) 
 

Converts a Color struct to a Java Color-Object.

Parameters:
color - a Color struct
Returns:
Java Color-Object
See also:
convertJavaColor(jobject color)

Definition at line 65 of file color.c.

Color convertJavaColor jobject  color  ) 
 

Converts a Java Color-Object to a Color struct.

Parameters:
color - a Java Color-Object
Returns:
The Color struct with the values of the Color-Object
See also:
convertColor(const Color* color)

Definition at line 29 of file color.c.


Generated on Sat Nov 19 14:11:12 2005 for GrubC by  doxygen 1.4.4