Accusoft.ImagXpress13.Net
FromStream(ImagXpress,Stream,Int32,Int32,LoadOptions) Method




An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
A stream to obtain the image from.
An integer which represents the page number.
An integer which represents the number of bytes to read in at one time. The range for this parameter is from 4096 bytes to 1048576 bytes.
Additional load options that pertain to the image.
Returns an ImageX object from the given ImagXpress instance, stream, page number and load options.
Syntax
'Declaration
 
Public Overloads Shared Function FromStream( _
   ByVal imagXpress As ImagXpress, _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer, _
   ByVal numberOfBytesToRequestAtEachRead As Integer, _
   ByVal loadOptions As LoadOptions _
) As ImageX
'Usage
 
Dim imagXpress As ImagXpress
Dim stream As Stream
Dim pageNumber As Integer
Dim numberOfBytesToRequestAtEachRead As Integer
Dim loadOptions As LoadOptions
Dim value As ImageX
 
value = ImageX.FromStream(imagXpress, stream, pageNumber, numberOfBytesToRequestAtEachRead, loadOptions)
public static ImageX FromStream( 
   ImagXpress imagXpress,
   Stream stream,
   int pageNumber,
   int numberOfBytesToRequestAtEachRead,
   LoadOptions loadOptions
)
public: static ImageX* FromStream( 
   ImagXpress* imagXpress,
   Stream* stream,
   int pageNumber,
   int numberOfBytesToRequestAtEachRead,
   LoadOptions* loadOptions
) 
public:
static ImageX^ FromStream( 
   ImagXpress^ imagXpress,
   Stream^ stream,
   int pageNumber,
   int numberOfBytesToRequestAtEachRead,
   LoadOptions^ loadOptions
) 

Parameters

imagXpress
An instance of the ImagXpress workspace component. This is the main ImagXpress component that typically must be dragged onto a form first.
stream
A stream to obtain the image from.
pageNumber
An integer which represents the page number.
numberOfBytesToRequestAtEachRead
An integer which represents the number of bytes to read in at one time. The range for this parameter is from 4096 bytes to 1048576 bytes.
loadOptions
Additional load options that pertain to the image.

Return Value

The newly created ImageX object.
Remarks

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.

Note: PDF support is deprecated in ImagXpress, please use PDF Xpress instead for PDF support.

See Also

Reference

ImageX Class
ImageX Members
Overload List

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback