ImageGear for .NET
GetPageCount(Stream,ImGearFormats,ImGearLoadOptions) Method
See Also  Send Feedback
ImageGear21.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > GetPageCount Method : GetPageCount(Stream,ImGearFormats,ImGearLoadOptions) Method




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

Glossary Item Box

Calculates the number of pages in an image.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

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

Return Value

Number of pages in the image.

Remarks

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

See Also

©2013. Accusoft Corporation. All Rights Reserved.