Dynamsoft Home|Product Home

SaveAsPNG Method

Description

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

Syntax

Boolean ObjectName. SaveAsPNG(String FileName, Short sImageIndex)

Parameters

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

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

None.

See also

SaveAsJPEG(), SaveAsTIFF(), SaveAsBMP(), SaveAllAsMultiPageTIFF(), FTPUpload(), FTPDownload(), HTTPUploadThroughPut(), HTTPUploadThroughPost(), HTTPDownload()