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









SaveAsTIFF Method

Description

Saves the image of a specified index in buffer as a TIFF file.

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

Syntax

Boolean ObjectName. SaveAsTIFF(String FileName, Short sImageIndex)

Parameters

String FileName: the name of the TIFF file to be saved. It should be an absolute path on the local disk.

Short sImageIndex: specifies the index of image in buffer. The index is 0-based. 

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

TIFF is a built-in feature of Dynamic Webcam, no other DLLs are required.

If you would like to save images by showing the browser dialog box, you can set IfShowFileDialog to true.

See also

IfTIFFMultiPage property, TIFFCompressionType property, SaveAsJPEG(), SaveAsBMP(), SaveAsPNG(), SaveAllAsMultiPageTIFF(), HTTPUploadThroughPut(), HTTPUploadThroughPost(), FTPUpload()

Javascript Sample:

<script language="javascript"> function btnSaveTIFF_onclick() {
Webcam.SaveAsTIFF("C:/ImageData.tif",0); } </script>