我可以在python上复制一个PhotoImage吗?

时间:2016-06-23 22:41:36

标签: image python-3.x tkinter copy

我需要创建一个图像副本。 这就是我想要做的事情:

copy.cpoy(PhotoImage(width=imgWidth, height=imgHeight))

1 个答案:

答案 0 :(得分:0)

PhotoImage的实例有一个copy方法,可以返回图像的副本。

img = PhotoImage(...)
copy = img.copy()