假设我在列表中有一个像素列表(表示为具有3个RGB值的元组)list(im.getdata()),如下所示:
list(im.getdata())
[(0,0,0),(255,255,255),(38,29,58)...]
如何使用此格式使用RGB值(每个元组对应一个像素)创建新图像?
谢谢你的帮助.
python python-imaging-library
python ×1
python-imaging-library ×1