[SciPy-User] How to draw an image in fltk from numpy array?
Christopher Barker
Chris.Barker at noaa.gov
Fri Dec 18 15:05:46 EST 2009
Andy Fraser wrote:
> I've done some more looking around and found answers to my own
> questions. The key was to fetch the source for pyfltk from
> http://pyfltk.sourceforge.net/index.php#download and look at the
> examples
yup -- I actually poked around a little looking for an answer for you,
but docs are very sparse!
> The code also runs if the first argument to
> fl_draw_image is bits rather than bits.data.
I figured -- numpy arrays expose the buffer interface, so you should be
able to pass one into anything expecting a buffer.
Glad you got it figured out.
-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 SciPy-User
mailing list