Routines



GetImageDim routine


Get the width and height of an image embeded in a Image object in the memory.

required external library: image

void GetImageDim( Image img, unsigned int dx, unsigned int dy );


Parameters

img [in] Image variable that embed the image in memory
dx [out] width of the image
dy [out] height of the image

Return values

The routine does not return anything.

Example code

loadlib base;
loadlib image;


Image i;
main()
{
unsigned int lx,ly;
...
LoadImage(i,"anger.bmp");
GetImageDim(i,lx,ly);
printf("The image has ",lx," pixels width and ",ly," pixels height");
}


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