ImageGear23.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class > LoadDocument Method : LoadDocument(Stream,Int32,Int32,ImGearLoadOptions) Method |
'Declaration Public Overloads Shared Function LoadDocument( _ ByVal stream As Stream, _ ByVal startPageNumber As Integer, _ ByVal count As Integer, _ ByVal options As ImGearLoadOptions _ ) As ImGearDocument
'Usage Dim stream As Stream Dim startPageNumber As Integer Dim count As Integer Dim options As ImGearLoadOptions Dim value As ImGearDocument value = ImGearFileFormats.LoadDocument(stream, startPageNumber, count, options)
public static ImGearDocument LoadDocument( Stream stream, int startPageNumber, int count, ImGearLoadOptions options )
public: static ImGearDocument* LoadDocument( Stream* stream, int startPageNumber, int count, ImGearLoadOptions* options )
public: static ImGearDocument^ LoadDocument( Stream^ stream, int startPageNumber, int count, ImGearLoadOptions^ options )
This method provides more flexibility for loading images (i.e., the ability to load image thumbnail and specify image format explicitly). If the document size is close to 2GB, an exception of System.OutOfMemoryException will be thrown.