GetImagePageCountA
Image handling, Miscellaneous functions
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetImagePageCount and string arguments are interpreted using the current SetAnsiMode code page
Returns the number of pages in the specified image file. Most images consist of 1 page, but TIFF images may contain multiple pages.
Syntax
Delphi
Function DLGetImagePageCountA(InstanceID: Integer; FileName: PAnsiChar): Integer;
DLL
int DLGetImagePageCountA(int InstanceID, const char * FileName);
Parameters
| FileName | The name of the image file to analyze. |
|---|
Return values
| 0 | The image file is invalid or does not exist |
|---|---|
| Non-zero | The number of pages in the specified image |