anti-aliased 2D vector graphics

Andy C ayc8NOSPAM at cornell.edu
Fri Aug 1 21:43:50 EDT 2003


Thanks for the suggestion, I think this will work fine for what I'm doing.
A little off topic, but is this how it is typically done?  Is there a
special case for lines vs. fonts?

"Christos TZOTZIOY Georgiou" <tzot at sil-tec.gr> wrote in message
news:tptkivkpmm0g1q1hr9de9f49p7b3ltcale at 4ax.com...
> On Fri, 01 Aug 2003 07:57:29 GMT, rumours say that "Andy C"
> <ayc8NOSPAM at cornell.edu> might have written:
>
> >Where can I get a python package to draw such figures?  I googled and
found
> >PyX, I guess it outputs PostScript.  I guess I can get a PostScript to
BMP
> >converter or something.  Is there any other alternative?
> >
> >I have looked at PIL, but it doesn't seem to support drawing anti-aliased
> >figures.  Thanks for any suggestions.
>
> Use PIL, and draw on an image twice the size (2*width, 2*height) as the
> one you want.  When you're done, resize the image --BILINEAR works fine
> in this case.
>
> You will need to draw thicker lines & arcs (I don't remember ATM if you
> can use a <width> parameter with drawing methods)... create a custom
> class to manage drawing double lines and arcs / circles when needed.
> --
> TZOTZIOY, I speak England very best,
> Microsoft Security Alert: the Matrix began as open source.






More information about the Python-list mailing list