Copy/Paste graphics using clipboard on Vista/Win7

BlitzMax Forums/BlitzMax Programming/Copy/Paste graphics using clipboard on Vista/Win7

chimaera(Posted 2010) [#1]
Hi everyone,

I know that this question has been asked before when it comes to
32bit Operating systems, but since that era is kinda slipping away I am
thought I might start afresh.

I am looking to create an app for one of my artists to work with.
To make the pipeline as smooth as possible he would like to be able to
copy graphics to the system clipboard using ctrl-c (for example in
Photoshop) and then paste it in my app.

I know that there has been solutions for this on the site before when
it comes to 32-bit OS, but not for 64-bit versions.

I guess that the main problem is getting the data from the clipboard
using Blitzmax, but I don't know.

Any ideas how this can be solved? I also wonder if anyone knows if
alpha is contained in the clipboard after a ctrl-c.

Any advice would be helpful!


Arowx(Posted 2010) [#2]
http://www.blitzbasic.com/codearcs/codearcs.php?code=2148
Might help!


chimaera(Posted 2010) [#3]
No, a lot of people have referred to that page in the past, and that it is for win32 os only.


ziggy(Posted 2010) [#4]
You should use a 32 bits solution if you're going to get the clipboard data from a 32 bits application.


chimaera(Posted 2010) [#5]
Ziggy, yeah that sounds logical. The problem is that the different solutions for getting the clipboard using win32, doesn't seem to work in Vista. Maybe it's a Vista/Win7 problem more than a win64 problem.

Any other ideas?


ziggy(Posted 2010) [#6]
If you provide some source code, we can take a look in order to see what can be happenig. You're likely to get a handler to a GDI bitmap which is not a blitzMax Image or Pixmap, so a conversion 'could' be requiered if you're really managing to get some data