[Image-SIG] can't draw a simple point or line! help please

Harald Ragger h.ragger@aon.at
Fri, 9 Jun 2000 01:13:21 +0200

When drawing a rectangle theres no problem. but when i try to draw a point
or a simple line, I always get errors.
Help please!!!
thx in advance


****************the code:*******************

import Image, ImageDraw

im = Image.new('RGB', (size, size))
draw = ImageDraw.ImageDraw(im)
bgcolor = (255, 255, 255)
color = (0,0,0)
draw.rectangle([0, 0, size, size], fill=bgcolor, outline=color)
draw.point(20, 20, fill=bgcolor)
del draw
# write to disk

>>> Traceback (innermost last):
  File "d:\Programme\Python\Pythonwin\pywin\framework\scriptutils.py", line
310, in RunScript
    exec codeObject in __main__.__dict__
  File "D:\Programme\Python\Scripts\test1.py", line 9, in ?
    draw.point(20, 20, fill=bgcolor)
TypeError: keyword parameter redefined