Loads an image into the Dynamic Web TWAIN.
| ActiveX Edition | Plug-in Edition | Mac Edition |
|---|---|---|
| Since V4.0 | Since V4.0 | Since V6.4 |
Boolean ObjectName. LoadImage(String FileName)
String FileName: the name of the image to be loaded.
Boolean.
TRUE indicates success. FALSE indicates failure.
When an error occurs and IfThrowException property is TRUE, an exception will be thrown.
When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.
Dynamic Web TWAIN processes the image format according to the extension of the FileName.
Dynamic Web TWAIN supports the following types of image files:
| Bitmap | *.bmp, *.dib |
| JPEG | *.JPG, *.JPEG, .*.JPE, *.JFIF |
| TIFF | *.TIF, *.TIFF |
| PNG | *.PNG |
The loaded image will be displayed in the Dynamic Web TWAIN.
If you would like to select and load an image by showing the browser dialog box, you can set IfShowFileDialog to true.
FTPDownload(), HTTPDownload(), LoadDibFromClipboard(), LoadImageEx(), IfShowFileDialog
A JavaScript sample is provided.
<script language="javascript">
function btnLoadImage_onclick() {
WebTWAIN.LoadImage("G:/wwwroot/WebTWAIN/Images/ImageData.jpg");
}
</script>
TWAIN ActiveX |
TWAIN Plug-in |
TWAIN Control |
TWAIN SDK |
Scanner COM
Software Configuration Management |
Version Control |
Source Control
Copyright © 2012 Dynamsoft Corporation. All Rights Reserved.