SimpleOCR:SDK Functions – GetImgRes

You are here:
< All Topics

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);
Previous SimpleOCR:SDK Functions – GetImgBitmapSize
Next SimpleOCR:SDK Functions – GetImgSize
Table of Contents
Contact Us for FREE Consultation on Your OCR Project
Go to Top