September 7th, 2003, 03:42 PM
Draw a simple Image
What is the easiest way to draw (circles, rectangle, text and lines) in a file (jpg, gif or png) or in a viewer?
I looked at the PIL library, but that package seems to offer only modifications of image and not creation from scratch!
I want something very simple...
Which library should I import, what are the functions??
I did not find any tutorial on that!
Last edited by matt_hayabusa; September 7th, 2003 at 03:47 PM.
September 7th, 2003, 05:20 PM
You might need to give PIL a file to open - there may be a way around this, i'm not a big user - but it can definatly meet your needs! Take a look at the module reference for more info on which PIL module does what.
In particular i'd look at ImageDraw and PSDraw. I'd also read though the tutorial if you havn't already PIL does the advanced stuff well but I can also do the basics..
Some other packages you might be interested in:
Hope this helps,
Last edited by netytan; September 7th, 2003 at 05:32 PM.