[wxPython-users] Adding zoom to bmp image
Christopher Barker
Chris.Barker at noaa.gov
Mon Nov 26 15:02:16 PST 2007
you might want to take a look at:
wx.lib.floatcanvas
or:
http://morticia.cs.dal.ca/FloatCanvas/
It's mostly for vector drawing, but does support scalable bitmaps, and
handles zooming, panning, etc. for you.
-Chris
> I will also need to somehow
> compensate the coordinates to keep the enlarged/reduced image using the
> lower left corner as the origin. What is the best way to do this?
If you do it yourself, you just need to do that arithmetic yourself. It
is a bit of a pain.
> Is there a built-in function that enables scaling of a bmp image without
> having to create an image of the bmp scaled then rendering to the screen?
you can try DC.SetUserScale -- it might work. Also, GraphicsContext may
be able to do it for you too.
-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