ImageGear v26.3 - Updated
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.




In This Topic
    LoadPage(Stream,Int32) Method
    In This Topic
    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