ImageGear Professional DLL v18.1 for Windows
IG_page_count_get
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Info Functions > IG_page_count_get

Glossary Item Box

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

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

©2014. Accusoft Corporation. All Rights Reserved.