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. |
All pixel formats supported by ImageGear for C and C++.
Display, Filters, Vector.
Copy Code
|
|
---|---|
UINT nPages; // Will receive number of pages AT_ERRCOUNT nErrcount; // Count of returned errors nErrcount = IG_page_count_get ( "picture.bmp", &nPages ); |