Dynamsoft Home|Product Home

CutToClipboard Method

Description

Cuts the current image to clipboard in DIB format.

Syntax

Boolean ObjectName. CutToClipboard()

Parameters

None.

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

CutToClipboard() cuts the image to the clipboard. If the application still needs the image in Dynamic (Web) TWAIN, use CopyToClipboard().

The image is in DIB format.

See also

CopyToClipboard()

Sample   

VB Sample:
Private Sub Twain_OnPostTransfer()
    
    Twain.CutToClipboard         
    imgShowImage.Picture = Clipboard.GetData(vbCFBitmap) 
    Clipboard.Clear
        
End Sub