How can I set polygon width in python?

المشرف العام

Administrator
طاقم الإدارة
Here i am try to set polygon outline width but it give me error.

Please flow below code.

from PIL import Image,ImageDrawimg = Image.new("RGB", (1024, 1024), "white")draw = ImageDraw.Draw(img)draw.polygon((924, 266, 245, 777, 241, 782, 306, 100, 924, 266), fill="white", outline="black")

img_new_name="C:/example/Garpani_corrected.png"img.save(img_new_name, quality=90)

أكثر...
 
أعلى