SimpleOCR:SDK Functions – GetImgRes
void GetImgRes(const IMG * img, int * pw, int * ph)
This function allows you to get the horizontal and vertical resolution of an image
Return Value
None
Parameters
img
Pointer to an image of type IMG.
pw
Pointer to an integer that will contain the image horizontal resolution, given in Dots Per Inch (DPI).
ph
Pointer to an integer that will contain the image vertical resolution, given in DPI.
Example
IMG *img;
int HorzRes,VertRes;
// Create an IMG
...
GetImgRes(img,&HorzRes,&VertRes);