Routines



GetRGB routine


Get the color attributes of the input Color object.

required external library: image

void GetPenColor ( Color color, unsigned char red, unsigned char green, unsigned char blue );


Parameters
color [in] Color object that embeeds the red, green and blue attributes of the color
red [out] value of red attribute of the Color object
green [out] value of green attribute of the Color object
blue [out] value of blue attribute of the Color object

Return values

The routine does not return anything.

Example code

loadlib base;
loadlib image;


Color col;
unsigned char r,g,b;
main()
{
...
GetRGB(col,r,g,b);
printf("Color attributes of the pixel are: R[",r,"] G[",g,"] B[",b,"]");
...
}


Requirements

  • external dynamic link library: image.dll on the server


  • 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