from PIL import Image
import matplotlib.pyplot as plt
img = Image.new("RGB",(100,100))
img.paste("red",(10,10,30,30))
plt.imshow(img)
plt.show()
python PIL库 Image.new 和 paste
猜你喜欢
转载自blog.csdn.net/qq_37285386/article/details/107745872
今日推荐
周排行