我用过 PIL
#back_color_width for x in range(w): for y in range(h): if x==0 or y==0 or x==w-1 or y==h-1 : pixels[x,y] = back_color
我需要在图像的所有 4 个边上为图像添加一个边框
python image-processing python-imaging-library python-3.x
image-processing ×1
python ×1
python-3.x ×1
python-imaging-library ×1