-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Save bitmap to clipboard #48
Comments
Good idea. I'd like to keep Pyperclip platform-independent. But if it's not that difficult to implement this on Windows, then having this be a Windows-only feature for now would be good. |
Implementing this is quite easy - one just needs to expose a |
Well, ability of clipboard formats is not a problem - as long as there is room for extension people will add what they need when they need it. The current problem is to understand where to add this and how to debug possible "unable to convert format XXX to YYY" errors. At least information about XXX and YYY should be easily accessible. My fullstop is that I don't know how to convert |
The current implementation of |
See the jaraco.clipboard for an implementation that handles clipboard images on Windows. |
This would be a useful feature - allowing code to copy/get an image in the clipboard with Python on different operating systems, using this simple cross-platform clipboard module. |
Under Linux would format end up being a mimetype ? |
I could not find a Python library to load/save clipboard to/from a file. Also this library cannot handle clipboard images, so I created win32clipboard_example.py for Windows only. It can copy screenshots or images to/from MSPaint and probably more applications. |
It would be nice if there was API that can save captured bitmaps to clipboard. Something that accepts PyCBitmap object from pywin32:
The text was updated successfully, but these errors were encountered: