ClearImage .NET API
OpenFromClipboard Method (CiImage)
Example 





Inlite.ClearImage Namespace > CiImage Class : OpenFromClipboard Method
Create image from Clipboard
Syntax
'Declaration
 
Public Function OpenFromClipboard() As System.Integer
'Usage
 
Dim instance As CiImage
Dim value As System.Integer
 
value = instance.OpenFromClipboard()
public System.int OpenFromClipboard()
public function OpenFromClipboard(): System.Integer; 
public function OpenFromClipboard() : System.int;
public:
System.int OpenFromClipboard(); 
Remarks

Clipboard must contain either a CF_BITMAP or a CF_DIB formatted image.
This method generates an error if object.Image.IsZone is true.

Example
void ClipboardOps(string imageFile)
{
    CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
    CiImage image = ci.CreateImage();
    image.Open(imageFile, 1);
    // Save image to clipboard
    image.CopyToClipboard();
    // Close image
    image.Close();
    // Restore image from clipboard
    image.OpenFromClipboard();
}
Sub ClipboardOps(imageFile As String)
    Dim ci As CiServer = Inlite.ClearImageNet.Server.GetThreadServer()
    Dim image As CiImage = ci.CreateImage()
    image.Open(imageFile, 1)
    ' Save image to clipboard
    image.CopyToClipboard()
    ' Close image
    image.Close()
    ' Restore image from clipboard
    image.OpenFromClipboard()
End Sub
See Also

Reference

CiImage Class
CiImage Members