Routines



GetGrayImageDim routine


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

required external library: image

void GetGrayImageDim( GrayImage img, unsigned int dx, unsigned int dy );


Parameters

img [in] GrayImage 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;


GrayImage i;
main()
{
unsigned int lx,ly;
...
LoadGrayImage(i,"anger.bmp");
GetGrayImageDim(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