Routines
|
GetPenColor routine
Get the color attribute of the pen that is associated to a color image.
required external library: image
Parameters
img |
[in] Image variable that handles the color image |
color |
[out] Color object that embeeds the red, green and blue attributes of the color |
Return values
The return value is the gray level of the pen associated with input gray image.
Example code
- loadlib base;
- loadlib image;
- Image in;
- Color col;
- main()
- {
- LoadGrayImage(in,"anger.bmp");
- GetPenColor(in,col);
- printf("Color attributes of the pen are: R[",GetRed(col),"] G[",GetGreen(col),"] B[",GetBlue(col),"]");
- }
Requirements
external dynamic link library: image.dll on the server
|
Last update : November 24, 2003
If interested in this project, please fell free to contact the personnel of
our group. The project leader is dr.drs. L.J.M. Rothkrantz