ImageGear .NET
GetPageCount(Stream,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.
Syntax
'Declaration
 
Public Overloads Shared Function GetPageCount( _
   ByVal stream As Stream, _
   ByVal formatId As ImGearFormats _
) As Integer
'Usage
 
Dim stream As Stream
Dim formatId As ImGearFormats
Dim value As Integer
 
value = ImGearFileFormats.GetPageCount(stream, formatId)
public static int GetPageCount( 
   Stream stream,
   ImGearFormats formatId
)
public: static int GetPageCount( 
   Stream* stream,
   ImGearFormats formatId
) 
public:
static int GetPageCount( 
   Stream^ 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.
Remarks
If format ID is not ImGearFormats.UNKNOWN and image format cannot be detected, an exception is thrown.
See Also

Reference

ImGearFileFormats Class
ImGearFileFormats Members
Overload List
ImGearFormats Enumeration

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback