[wxPython-users] HitTest for Floatcanvas
Christopher Barker
Chris.Barker at noaa.gov
Thu Jul 20 17:59:49 PDT 2006
Robin Dunn wrote:
> Because your test is flawed. You are drawing off the edge of the =
> bitmap, so what comes back from the GetPixel is undefined. You should =
> be looping i and j from 0 to 99, not 1 to 100.
well, duh! thanks, Robin. I've enclosed a fixed version, that also =
outputs the pixel coords. If I'd done that in the first place, I =
probably would have found the problem myself.
Christian -- try running this and see what you get.
-Chris
-- =
Christopher Barker, Ph.D.
Oceanographer
=
NOAA/OR&R/HAZMAT (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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestBitmapColors.py
Type: text/x-python
Size: 1417 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20060=
720/b911432e/TestBitmapColors.py
More information about the wxpython-users
mailing list