ImageGear .NET v25.1 - Updated
LoadPage(Stream,Int32) Method




ImageGear.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > LoadPage Method : LoadPage(Stream,Int32) Method
The data stream containing an image.
The number of page to load; this is a 0-based index.
Loads a single page from an image.
Syntax
'Declaration
 
Public Overloads Shared Function LoadPage( _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer _
) As ImGearPage
'Usage
 
Dim stream As Stream
Dim pageNumber As Integer
Dim value As ImGearPage
 
value = ImGearFileFormats.LoadPage(stream, pageNumber)
public static ImGearPage LoadPage( 
   Stream stream,
   int pageNumber
)
public: static ImGearPage* LoadPage( 
   Stream* stream,
   int pageNumber
) 
public:
static ImGearPage^ LoadPage( 
   Stream^ stream,
   int pageNumber
) 

Parameters

stream
The data stream containing an image.
pageNumber
The number of page to load; this is a 0-based index.

Return Value

A new instance of ImageGear.Core.ImGearPage class.
Remarks
This is the simplest method for loading an image into ImageGear. If the format of an image cannot be detected, an exception is thrown.
See Also

Reference

ImGearFileFormats Class
ImGearFileFormats Members
Overload List
ImGearPage Class