Copies the image of a specified index in buffer to clipboard in DIB format.
Namespace: Dynamsoft.DotNet.TWAINAssembly: DynamicDotNetTWAIN (in DynamicDotNetTWAIN.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
| C# |
|---|
public bool CopyToClipboard( short sImageIndex ) |
| Visual Basic |
|---|
Public Function CopyToClipboard ( _ sImageIndex As Short _ ) As Boolean |
Parameters
- sImageIndex
- Type: System..::..Int16
Specifies the index of image in buffer. The index is 0-based.
Return Value
True indicates success. False indicates failure.
Remarks
CopyToClipboard() makes a copy of the image to the clipboard.
If the application does not need the image in Dynamic .NET TWAIN any more, use CutToClipboard(),
which can save memory, especially when the image is large.
The copied image is in DIB format.
Exceptions
| Exception | Condition |
|---|---|
| Dynamsoft.DotNet.TWAIN..::..TwainException | When an error occurs and IfThrowException property is true, an exception will be thrown. When IfThrowException property is false, please check ErrorCode and ErrorString. |