Copy image to clipboard
Visual Basic |
---|
Public Sub CopyToClipboard() |
Sub ClipboardOps(imageFile As String) ' Open image file Dim Ci As New CiServer Dim Image As CiImage: Set Image = Ci.CreateImage Image.Open imageFile ' Save image to clipboard Image.CopyToClipboard ' Close image Image.Close ' Restore image from clipboard Image.OpenFromClipboard End Sub