LoadDibFromClipboard()

Description

Loads an DIB image from system clipboard into Dynamic Web TWAIN.

Syntax

.LoadDibFromClipboard([optionalAsyncSuccessFunc, optionalAsyncFailureFunc]);

Parameters

The following two parameters are optional. If either one exists or both exist, the method is asynchronous, otherwise it's synchronous.

<OnSuccess function> optional optionalAsyncSuccessFunc: callback function triggered when the file is loaded successfully.
<OnFailure function> optional optionalAsyncFailureFunc: callback function triggered when the file failed to be loaded.

Please refer to the function prototype OnSuccess or OnFailure.

Return value

Only valid when used synchronously.

bool

true indicates success. false indicates failure.

When false is returned, check ErrorCode or ErrorString for error information.

Is this page helpful?

Leave a Reply

Your email address will not be published.