From: Joel VanderWerf Date: 2008-08-15T12:09:45+09:00 Subject: Re: vector graphics library with pan and zoom Patrick Doyle wrote: > Hello, > I'm not trying to open a debate about which GUI library is the best. > I would just like a pointer to a graphics library I can use to draw > some vector graphics (lines, arcs, circles, polygons, possibly filled > polygons, etc...) which would be presented to a Windows user in a > window which (s)he could pan and zoom in and out. > > Does anybody know if such a beast exists? > > If not, can anybody point me at the easiest way to get something close to that? > > If not, can anybody point me at the easiest way to get any sort of > vector graphics drawn in a Windows window? (This is the part I cringe > at -- I'm _really_ not trying to ignite a holy war here.) > > Thanks for any pointers... > > --wpd TkCanvas is very good for that. You can use it as a library, but what I've found useful recently is to isolate the vector drawing and user interaction (select, drag, drop, pan, zoom) in a separate process. This permits using it from simulink, for example. http://path.berkeley.edu/~vjoel/vis/tkar/ There's a protocol for talking to tkar, documented in the above. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407