Routines
 | 
 
 
LoadGrayImage routine 
  
Loads a gray 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. If the file
mentioned to be loaded has also colours, the routine automatically converts it to 
grayscale image.
 
 
required external library: image
 
 
 
 
Parameters
 
| img | 
[out] GrayImage variable that handles the grayscale 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;
 
 
 
- GrayImage i;
  
- main()
  
- {
 
- LoadGrayImage(i,"anger.bmp");
 
- }
 
 
 
Requirements
 
 external dynamic link library: image.dll on the server
 
 | 
Last update : November 24, 2003
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