[Image-SIG] ImageDraw not working ( for me )
Fredrik Lundh
fredrik@pythonware.com
Wed, 1 Sep 1999 10:47:36 +0200
phil wilshire <philwil@on-ramp.ior.com> wrote:
> I am looking at a simple example almost out of the book.
> import Image, ImageDraw, ImagePalette
>
> #im = Image.new('P',(300,200),100)
> im = Image.open("lena.jpg")
> draw = ImageDraw.Draw(im)
> pal = ImagePalette.ImagePalette
> draw.setink(128)
>
> #print draw.ink
> #print draw.im
>
> draw.line((0,0),im.size)
try
draw.line((0, 0) + im.size)
(the example in the documentation is still broken,
it seems. updated docs is coming soon).
</F>