ImageGear for C and C++ on Linux v20.0 - Updated
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.


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


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++.


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


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