Routines



DrawLine routine


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

required external library: image

void DrawLine ( Image img, Point p0, Point p1 );


Parameters
img [in] Image variable that handles the color image
p0 [in] the starting point of the line
p1 [in] the ending point of the line

Return values

The routine does not return anything

Example code

loadlib image;


Image in;
Point p0,p1;
main()
{
LoadImage(in,"anger.bmp");
DrawLine(in,p0,p1);
}


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