[wxPython-users] Viewing images layed on top of each other

Christopher Barker Chris.Barker at noaa.gov
Thu Dec 27 13:20:26 PST 2007


Karl Kobata wrote:
> Please suggest step-by-step syntax to do the following:

That's an awful lot of functionality to ask us to write for you! But 
here's some questions that may lead to help getting you started:

> I would like to draw graphic drawings that can be overlayed on each 
> other.  The graphics are initialized at the start of the application and 
> does not change.

Are these vector or raster (bitmap) graphics? Where are they coming from?

> The selected layers will 
> be changed many times in many combinations. 

And yet they do not change? I'm confused.

> In addition, I would like the ability to zoom on these drawings.

If you're talking about vector graphics (where the objects are 
mathematically defined) then wx.lib.FloatCanvas can help you a lot. (see 
also the latest version from http://morticia.cs.dal.ca/FloatCanvas/)

It could help with rater graphics too, but I'm not sure about 
transparency. Transparent rasters have only recently had good support in 
wx, and FloatCanvas pre-dates that -- it may take some tweaking.

-Chris

-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list