Routines



SaveImage routine


Save a color image that exists in memory 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 SaveImage( Image img, string naam );


Parameters

img [in] Image variable that handles the color/grayscale image
naam [in] Name of the image file on the disk

Return values

If there are errors on saving the image as a file on the disk, the return value is 0. If the routine succeeds, the return value is 1.

Example code

loadlib image;


Image i;
main()
{
...
SaveImage(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