SimpleOCR:SDK Functions – GetImgSize
void GetImgSize(const IMG * img, int * pw, int * ph)
This function allows you to get the size of an image, given in pixels.
Return Value
None
Parameters
img
Pointer to an image of type IMG.
pw
Pointer to an integer that will contain the image width in pixels
ph
Pointer to an integer that will contain the image height in pixels
Example
The following example retrieves an image size
IMG *img;
int width,height;
// Create an IMG
...
GetImgSize(img,&width,&height);