Accusoft.ImagXpress13.Net
FromFile(ImagXpress,String,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 string value that represents the filename.
An integer which represents the page number from the file.
Additional loading options as they pertain to the different file for formats.
Loads from the given file and specified load options creating a new ImagXpress workspace component.
Syntax
'Declaration
 
Public Overloads Shared Function FromFile( _
   ByVal imagXpress As ImagXpress, _
   ByVal filename As String, _
   ByVal pageNumber As Integer, _
   ByVal loadOptions As LoadOptions _
) As ImageX
'Usage
 
Dim imagXpress As ImagXpress
Dim filename As String
Dim pageNumber As Integer
Dim loadOptions As LoadOptions
Dim value As ImageX
 
value = ImageX.FromFile(imagXpress, filename, pageNumber, loadOptions)
public static ImageX FromFile( 
   ImagXpress imagXpress,
   string filename,
   int pageNumber,
   LoadOptions loadOptions
)
public: static ImageX* FromFile( 
   ImagXpress* imagXpress,
   string* filename,
   int pageNumber,
   LoadOptions* loadOptions
) 
public:
static ImageX^ FromFile( 
   ImagXpress^ imagXpress,
   String^ filename,
   int pageNumber,
   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.
filename
A string value that represents the filename.
pageNumber
An integer which represents the page number from the file.
loadOptions
Additional loading options as they pertain to the different file for formats.

Return Value

A newly created ImageX object.
Remarks

The decompressed image is stored in the ImageX object.

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