Accusoft.ImagXpressSdk Namespace > ImageX Class > FromStream Method : FromStream(ImagXpress,Stream,Int32,Int32) Method |
'Declaration Public Overloads Shared Function FromStream( _ ByVal imagXpress As ImagXpress, _ ByVal stream As Stream, _ ByVal pageNumber As Integer, _ ByVal numberOfBytesToRequestAtEachRead As Integer _ ) As ImageX
'Usage Dim imagXpress As ImagXpress Dim stream As Stream Dim pageNumber As Integer Dim numberOfBytesToRequestAtEachRead As Integer Dim value As ImageX value = ImageX.FromStream(imagXpress, stream, pageNumber, numberOfBytesToRequestAtEachRead)
public static ImageX FromStream( ImagXpress imagXpress, Stream stream, int pageNumber, int numberOfBytesToRequestAtEachRead )
public: static ImageX* FromStream( ImagXpress* imagXpress, Stream* stream, int pageNumber, int numberOfBytesToRequestAtEachRead )
public: static ImageX^ FromStream( ImagXpress^ imagXpress, Stream^ stream, int pageNumber, int numberOfBytesToRequestAtEachRead )
Note: Loading CameraRaw files from a stream is not supported as the entire image must be loaded before the CameraRaw format can be recognized. When LoadOptions.CameraRawEnabled = true, the CameraRaw image can only be loaded from a file.
The ImageX object implements the IDisposable interface and the application is required to call the Dispose method when the application is done with ImageX object, otherwise memory may leak.