1:打开图片,新建空图片,粘贴图片,保存图片
import Image
blank=Image.new("RGB",(800,600)) //new a blank picture
img=Image.open("1.png") //open a picture
blank.paste(img,(0,0)) //paste an opened picture to a blank picture
blank.paste(img,(800,0))
blank.save("result.png") //save to a new picture
本文来自投稿,不代表程序员编程网立场,如若转载,请注明出处:http://www.cxybcw.com/199142.html