'Declaration Public Overloads Shared Function GetPageCount( _ ByVal stream As Stream, _ ByVal formatId As ImGearFormats, _ ByVal options As ImGearLoadOptions _ ) As Integer
'Usage Dim stream As Stream Dim formatId As ImGearFormats Dim options As ImGearLoadOptions Dim value As Integer value = ImGearFileFormats.GetPageCount(stream, formatId, options)
public static int GetPageCount( Stream stream, ImGearFormats formatId, ImGearLoadOptions options )
public: static int GetPageCount( Stream* stream, ImGearFormats formatId, ImGearLoadOptions* options )
public: static int GetPageCount( Stream^ stream, ImGearFormats formatId, ImGearLoadOptions^ options )
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.