ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Formats Namespace / ImGearFileFormats Class / LoadPage Method / LoadPage(Stream,Int32,ImGearLoadOptions) Method
The data stream containing an image.
The number of page to load.
The loading options.




In This Topic
    LoadPage(Stream,Int32,ImGearLoadOptions) 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, _
       ByVal loadOptions As ImGearLoadOptions _
    ) As ImGearPage
    'Usage
     
    Dim stream As Stream
    Dim pageNumber As Integer
    Dim loadOptions As ImGearLoadOptions
    Dim value As ImGearPage
     
    value = ImGearFileFormats.LoadPage(stream, pageNumber, loadOptions)
    public static ImGearPage LoadPage( 
       Stream stream,
       int pageNumber,
       ImGearLoadOptions loadOptions
    )
    public: static ImGearPage* LoadPage( 
       Stream* stream,
       int pageNumber,
       ImGearLoadOptions* loadOptions
    ) 
    public:
    static ImGearPage^ LoadPage( 
       Stream^ stream,
       int pageNumber,
       ImGearLoadOptions^ loadOptions
    ) 

    Parameters

    stream
    The data stream containing an image.
    pageNumber
    The number of page to load.
    loadOptions
    The loading options.

    Return Value

    A new instance of ImageGear.Core.ImGearPage class.
    Remarks
    This method provides more flexibility for loading images (i.e., the ability to load image thumbnail and specify image format explicitly).
    See Also