The leading provider of version control solutions and TWAIN SDKs
  • Contact us









LoadImage

Description

Loads an image into the Dynamic Webcam.

ActiveX Edition Plug-in Edition Mac Edition
Since V4.0 Since V4.0 Since V6.4

Syntax

Boolean ObjectName. LoadImage(String FileName)

Parameters

String FileName: the name of the image to be loaded.

Return value

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.

Remarks

Dynamic Webcam processes the image format according to the extension of the FileName.

Dynamic Webcam 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 the Dynamic Webcam.

If you would like to select and load an image by showing the browser dialog box, you can set IfShowFileDialog to true.

See also

FTPDownload()HTTPDownload(), LoadDibFromClipboard(), LoadImageEx(), IfShowFileDialog

Sample

A JavaScript sample is provided.

<script language="javascript">
	function btnLoadImage_onclick() {
		Webcam.LoadImage("G:/wwwroot/Webcam/Images/ImageData.jpg");
	}
</script>