How Can We Help?

SimpleOCR:SDK Functions – GetImgSize

You are here:
< All Topics

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);
Contact Us for FREE Consultation on Your OCR Project
=
Table of Contents

Title

Go to Top