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

CutToClipboard Method

Description

Cuts the image of a specified index in buffer to clipboard in DIB format.

Syntax

Boolean ObjectName. CutToClipboard(Short sImageIndex)

Parameters

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

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(0)         
    imgShowImage.Picture = Clipboard.GetData(vbCFBitmap) 
    Clipboard.Clear
        
End Sub

 

 

 













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