下载PYTHON
下载PIL(http://www.pythonware.com/downloads/index.htm)
下载PIL(http://www.pythonware.com/downloads/index.htm)
import Image,ImageDraw
im = Image.open('test.bmp')
draw = ImageDraw.Draw(im)
draw.polygon([(200,200),(220,200),(220,240),(200,240)],fill="#879f65")
im.save('test.bmp')