Routines



SetPenGrayLevel routine


Set the gray level attribute of the pen that is associated to a gray image. The attribute is used by drawing routines such as DrawGrayBox or DrawGrayLine.

required external library: image

void SetPenGrayLevel ( GrayImage img, unsigned char c );


Parameters
img [in] GrayImage variable that handles the gray scale image
c [in] new level of gray for the pen

Return values

The routine does not return anything.

Example code

loadlib image;


GrayImage in;
main()
{
LoadGrayImage(in,"anger.bmp");
SetPenGrayLevel(in,0);
}


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