【发布时间】:2017-02-13 15:54:12
【问题描述】:
我正在尝试截取屏幕截图并将光标粘贴到上面,但是当我运行程序时,结果是光标粘贴了大的黑色背景,有谁知道我怎样才能让黑色背景消失?
这是我的代码:
from PIL import Image
im = Image.open("screenShot.png")
mouse = Image.open(r"C:\Windows\Cursors\aero_arrow.cur")
im.paste(mouse, (40,40)) #Drawing the cursor
im.save("newImage.png")
【问题讨论】:
标签: python image python-imaging-library paste