[Image-SIG] ellipse in PIL doesn't appear ... ?

Jim Tittsler jwt@OnJapan.net
Sun, 20 Aug 2000 09:19:13 +0900


On Sat, Aug 19, 2000 at 11:31:01PM +0200, Denis Frère wrote:
> What means xy in the case of an ellipse ?

I believe it is the bounding rectangle that contains the ellipse.

import Image,ImageDraw
im = Image.new('RGB', (400,400), (0xFF,0xFF,0xFF))
id = ImageDraw.Draw(im)
# draw a red elipse outlined in blue that fits in (200,200) to (395,300)
id.ellipse((200,200,395,300), fill=(0xFF,0,0), outline=(0,0,0xFF))
im.save("test.png")

-- 
Jim Tittsler, Tokyo
Python Starship     http://starship.python.net/crew/jwt/