Copy picture to clipboard

I spend some extra time on it and got a few new ideas.
Maybe it’s fixed now. See Emails.

Looks like we can now get/set HBITMAP again. But it seems like some other apps can’t handle that and need something different.

[quote=345930:@Christian Schmitz]I spend some extra time on it and got a few new ideas.
Maybe it’s fixed now. See Emails.[/quote]
Got it… Thanks. Will test later today and let you know.

Latest version in dropbox seems to fix it.

You may need to switch to newer setDIB function instead of setPicture.

Yes it does! - at least when pasting into the target apps that our customer needs - Word, Excel, and Outlook.

This is yet another reason I’m glad we use the MBS plugins! Thanks to everyone that has offered advice on this.

if someone wants to try until I release next update:
https://www.dropbox.com/sh/pefikfvg5dnum7l/AAAs2ZbeeTlYbLg95cNHu4U5a?dl=0

I can copy a picture from one canvas to the clipboard and copy it from the clipboard into another canvas.

[code]dim p as picture = Canvas2.Backdrop
dim c as new WindowsClipboardMBS
c.Clear

if c.SetPicture§ then
speak “Copy picture”
end if

canvas3.Backdrop = c.GetPicture[/code]

But when I look into my windows clipboard I only have a 16x16 image. I still can’t copy my picture from the clipboard into MS Office.
I took the plugin from the dropbox link above.

Please use setDIB and getDIB methods.

Thanks Christian, using setDIB and getDIB works.
Great… This will stay in this plugin I suppose… ?

Yes, of course.