PIL Example
smibr at my-deja.com
smibr at my-deja.com
Tue Jan 23 14:32:13 EST 2001
When I run the following example from the PIL documentation, the
traceback indicates an attempt to redefine "fill" in line xx. Has the
mechanism for passing named parameters changed in 2.0?
Thanks.
import Image, ImageDraw
im = Image.open("lena.pgm")
draw = ImageDraw.Draw(im)
draw.line((0, 0) + im.size, fill=128)
draw.line((0, im.size[1], im.size[0], 0), fill=128)
del draw
# write to stdout
im.save(sys.stdout, "PNG")
Sent via Deja.com
http://www.deja.com/
More information about the Python-list
mailing list