ImageGear for Java
getPageCount(ImGearStream,ImGearFormats) Method
The data stream containing an image.
Format ID: if ImGearFormats.UNKNOWN is specified, image format is auto-detected.
Calculates the number of pages in an image.

If format ID is not ImGearFormats.UNKNOWN and image format cannot be detected, an exception is thrown.

ImGearFormats

Syntax
public static int getPageCount( 
   ImGearStream stream,
   ImGearFormats formatId
)

Parameters

stream
The data stream containing an image.
formatId
Format ID: if ImGearFormats.UNKNOWN is specified, image format is auto-detected.

Return Value

Number of pages in the image.
See Also

Reference

ImGearFileFormats Class
ImGearFileFormats Members
Overload List

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback