Loads an image into Dynamic .NET TWAIN.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool LoadImageEx( string strFileName, DWTImageFileFormat enumImageType ) |
| Visual Basic |
|---|
Public Function LoadImageEx ( _ strFileName As String, _ enumImageType As DWTImageFileFormat _ ) As Boolean |
Parameters
- strFileName
- Type: System..::..String
The name of the image to be loaded. It should be the absolute path of the image file on the local disk.
- enumImageType
- Type: Dynamsoft.DotNet.TWAIN.Enums..::..DWTImageFileFormat
The image format of the file to be loaded.
Return Value
True indicates success. False indicates failure.
Remarks
Dynamic .NET TWAIN processes the image format according to the value of ImageType.
Allowed Values ImageType
WEBTW_BMP BMP
WEBTW_JPG JPEG
WEBTW_TIF TIFF
WEBTW_PNG PNG
WEBTW_PDF PDF
The loaded image will be displayed in Dynamic .NET TWAIN.
Allowed Values ImageType
WEBTW_BMP BMP
WEBTW_JPG JPEG
WEBTW_TIF TIFF
WEBTW_PNG PNG
WEBTW_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. |