Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3949

Paste picture from other application

$
0
0

Good morning (o;

Is pasting a picture from a clipboard only possible when the clipboard was filled from the same app or should it also work when copying a picture from another application?

For example when I copy a PNG from SF Symbols this code tells me that there is no picture in the clipboard:

Var c As New Clipboard

If c.PictureAvailable Then
  Var myPicture As Picture
  myPicture = c.Picture
  Canvas1.Backdrop = myPicture 
Else
  TextArea1.AddText("No picture..." + EndOfLine)
End If

c.Close

8 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3949

Trending Articles