How to save clipboard data as bmp file

G

gopal mishra

I have used ImageGrab.grabclipboard() to get the clipboard image data, it
returns None. This function only supports if the clipboard data format is
CF_BITMAP.

Is there any way to save clipboard data format CF_ENHMETAFILE to bitmap file
using win32 programming.

--
Gopal
I am trying to save my clipboard data (format is CF_ENHMETAFILE) as BitMap
file (.BMP).

Have a look at PIL's ImageGrab module:

http://www.pythonware.com/library/pil/handbook/imagegrab.htm

I'm not sure if the current version supports metafiles, but
it's easy enough to try.

TJG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top