Loads an image into the Dynamic .NET TWAIN.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool LoadImage( string strFileName ) |
| Visual Basic |
|---|
Public Function LoadImage ( _ strFileName As String _ ) As Boolean |
Parameters
- strFileName
- Type: System..::..String
The name of the image to be loaded.
Return Value
True indicates success. False indicates failure.
Remarks
Dynamic .NET TWAIN processes the image format according to the extension of the FileName.
Dynamic .NET TWAIN supports the following types of image files:
Bitmap *.bmp, *.dib
JPEG *.JPG, *.JPEG, .*.JPE, *.JFIF
TIFF *.TIF, *.TIFF
PNG *.PNG
PDF *.PDF
The loaded image will be displayed in Dynamic .NET TWAIN.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |