anti-aliased 2D vector graphics

Christos TZOTZIOY Georgiou tzot at sil-tec.gr
Mon Aug 4 11:42:25 EDT 2003


On Sat, 02 Aug 2003 01:43:50 GMT, rumours say that "Andy C"
<ayc8NOSPAM at cornell.edu> might have written:

[SNIP: My suggesting double size images and then resizing]

>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?

Font size should be doubled.
For lines, you *need* from 2 to 3 lines, but that involves some
math.atan2 style pre-calculations... (you can follow the easy way and
draw four lines as in the next paragraph.
For boxes, lines etc you better draw each 4 times
(x+0, y+0), (x+0, y+1), (x+1, y+0), (x+1, y+1)
-- 
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.




More information about the Python-list mailing list