Copying a PIL image to windows clipboard?
fredrik at pythonware.com
Tue Aug 26 10:10:14 CEST 2003
Gey-Hong Gweon wrote:
> Is there a way to copy a PIL image to windows clipboard (as a dib
> image or a bitmap, I suppose)?
> What I would like to accomplish is to do a fast copy and paste of
> images from my python application to a windows application such as
> powerpoint. A slower way is to use files, which is what I am doing at
> the moment.
as of PIL 1.1.4, you can only copy images *from* the clipboard
(see the ImageGrab module).
adding support for the other direction would be straightforward, but
involves some C (or win32all) programming, and more round tuits than
I have available right now (contributions are welcome!)
More information about the Python-list