Dynamsoft Home|Product Home

SaveAsPNG Method

Description

Saves the acquired image as a PNG file.

Syntax

Boolean ObjectName. SaveAsPNG(String FileName)

Parameters

String FileName: the name of the PNG 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

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

See also

SaveAsBMP(), SaveAsJPEG(), SaveAsTIFF()