Example with ImageDraw:
import Image, ImageDraw b = 10 imagebuffer = Image.new('RGBA', (501, 500 + b), 'white') drawbuffer = ImageDraw.Draw(imagebuffer) drawbuffer.rectangle((0, b, 500, 500), outline='red') drawpoints = [(150, 100 + b), (350, 100 + b), (400, 200 + b), (100, 200 + b), (150, 100 + b)] #drawbuffer.line(drawpoints, fill='red', width=4) drawbuffer.polygon(drawpoints, fill='red') #filled path imagebuffer.show()Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.