Routines



DrawBox routine


Draws a rectangle on the input color image object using the color pen defined.

required external library: image

void DrawBox ( Image img, Frame dim );


Parameters
i [in] Image variable that handles the color image
dim [in] the Frame object that contains the dimensions of the rectangle

Return values

The routine does not return anything.

Example code

loadlib image;


Image in;
Frame dimension;
Color col;
main()
{
LoadImage(in,"anger.bmp");
SetFrame(dimension,10,10,50,50);
SetRGB(col,30,40,40);
SetPenColor(in,col);
DrawBox(in,dimension);
}


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