Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

SaveAsJPEG Method

Description

Saves the acquired image as a JPEG file.

Syntax

Boolean ObjectName. SaveAsJPEG(String FileName)

Parameters

String FileName: the name of the JPEG file to be saved.

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

JPEG compression is a built-in feature of Dynamic TWAIN, no other DLLs are required.

JPEG standard defines that only 256 gray-scaled image and 24 bit RGB image can be compressed as JPEG format.

See also

JPEGQuality property, SaveAsBMP(), SaveAsTIFF(), SaveAsPNG()

 

 

 













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2009 Dynamsoft Corporation. All Rights Reserved.