ImageGear for C and C++ on Windows v20.5 - Updated
IG_page_count_get
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Info Functions > IG_page_count_get

This function obtains the number of pages in the image file.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_page_count_get(
   const LPSTR lpszFileName,
   LPUINT lpPageCount
);

Arguments:

Name Type Description
lpszFileName const LPSTR Path and name of the file for which to get the page count. The path can be absolute or relative.
lpPageCount LPUINT Pointer to a UINT variable to receive page count.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

Display, Filters, Vector.

Example:

 
Copy Code
UINT nPages;            // Will receive number of pages
AT_ERRCOUNT nErrcount;  // Count of returned errors
nErrcount = IG_page_count_get ( "picture.bmp", &nPages );

See Also

IG_fltr_pagecount_file_format

Is this page helpful?
Yes No
Thanks for your feedback.