Routines



LoadImage routine


Loads a color/gray scale image file that exists on the disk. At current stage AIDPT works only with 24 bit bitmap '.BMP' image type. Other types are not recognized.

required external library: image

int LoadImage( Image img, string naam );


Parameters
img [out] Image variable that handles a color image
naam [in] Name of the image file on the disk

Return values

If there are errors on loading the image file from the disk, such as in the case of no image file found or memory allocation error, the return value is 0. If the routine succeeds, the return value is 1.

Example code

loadlib image;


Image i;
main()
{
LoadImage(i,"anger.bmp");
}


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