Drawing with python.

A

aleator

Hello.

What is the recommendable means of producing
bitmaps with python. Basic primitives I need
are polygons, antialiased lines and ellipses.

I have tried, so far, GD-module (Very slow) and
Pygame(Antialiased lines are ugly, pixelated).

I do not necessarily need to produce bitmaps, any image
that is good for wxpython application and WWW is good
enough.

- Ville Tirronen
 
F

Fernando Perez

aleator said:
Hello.

What is the recommendable means of producing
bitmaps with python. Basic primitives I need
are polygons, antialiased lines and ellipses.

I have tried, so far, GD-module (Very slow) and
Pygame(Antialiased lines are ugly, pixelated).

I do not necessarily need to produce bitmaps, any image
that is good for wxpython application and WWW is good
enough.

Depending on your exact needs, PyX or matplotlib may fit the bill. matplotlib
uses AGG, so it renders beautifully antialiased lines, but it's more geared
towards plotting. PyX has more raw primitives for drawing exposed, but it's
main output target is PostScript (which you can of course easily convert later
at any desired resolution).

Cheers,

f
 
M

moma

aleator said:
Hello.

What is the recommendable means of producing
bitmaps with python. Basic primitives I need
are polygons, antialiased lines and ellipses.

I have tried, so far, GD-module (Very slow) and
Pygame(Antialiased lines are ugly, pixelated).

I do not necessarily need to produce bitmaps, any image
that is good for wxpython application and WWW is good
enough.

- Ville Tirronen

PIL ?
http://www.pythonware.com/products/pil/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,057
Members
47,661
Latest member
FloridaHan

Latest Threads

Top