|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Draw a simple Image
Hi everyone,
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! ![]() Thank you! Matt Last edited by matt_hayabusa : September 7th, 2003 at 02:47 PM. |
|
#2
|
||||
|
||||
|
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.
http://www.pythonware.com/library/p...e-reference.htm 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: http://pyx.sourceforge.net/ http://vpython.org/ Hope this helps, Mark. Last edited by netytan : September 7th, 2003 at 04:32 PM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > Draw a simple Image |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|