[Image-SIG] antialiasing in pil

Kees van Drongelen / VisualSpace kees@visualspace.nl
Fri, 11 May 2001 18:00:16 +0200


Hi there,


I'am new to pil and trying to create images dynamically in zope: I 
believe pil supports antialiasing. The thing is I can draw things but 
not smooth enough: please! does anybody knows what i'am doing wrong?


##################################################
# draw a smooth circle

##################################################

import Image, ImageDraw

dxy=100,100
bgcolor=255,0,0

pencolor=255,255,255
fillcolor=0,0,255

im = Image.new("RGBA",(dxy),(bgcolor))

########### draw something
draw = ImageDraw.Draw(im)

draw.ellipse((10,10, 90,90), outline=pencolor, fill=fillcolor)

del draw

im.save('output.png')
-- 
||||||||||||||||||||||||||||||||||||
VisualSpace
grafische en interactieve vormgeving

Krelagestraat 34
2012 CT Haarlem
T 023 532 33 66
F 023 532 33 04
http://www.visualspace.nl
||||||||||||||||||||||||||||||||||||