如何在Python中将图像复制到剪贴板?

huangapple go评论73阅读模式
英文:

How can I send an image to the clipboard in python?

问题

我正在尝试使用Pillow拍摄的一些图像,并将它们组织成一个列表。

我想将这些图像发送到剪贴板,这样我就可以使用“Ctrl+V”在多个Word文档中管理这些图像。

目前,我所做的是将这些图像发送到一个打开的Word文件中,使用win32,所以没有有用的代码可以展示... 但是这些图像在列表中,如下所示:

[<PIL.Image.Image image mode=RGB size=281x164 at 0x2A46AAAB7F0>]

英文:

I'm trying to use some images I take using pillow and that I organize in a list.

I would like to send those images to the clipboard, so I can use 'ctrl v' to manage those images in several word documents.

Right now, what I do is sending those images to an open word file using win32, so there's no useful code to show... but the images are in lists like:

[&lt;PIL.Image.Image image mode=RGB size=281x164 at 0x2A46AAAB7F0&gt;]

I would appreciate any guidance.

答案1

得分: 3

探索模块/库,如:tkinter、pyperclip、clipboard、xerox。

这些问题可能有助于深入了解:

英文:

Explore modules/libraries such as: tkinter, pyperclip, clipboard, xerox.

These questions may be of use to dig through:

huangapple
  • 本文由 发表于 2020年1月4日 01:29:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/59582827.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定