Create image from Clipboard
Visual Basic |
---|
Public Sub OpenFromClipboard() |
Clipboard must contain either a CF_BITMAP or a CF_DIB formatted image.
This method generates an error if object.Image.IsZone is true.
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