From: sa6113 <s.p...@gm...> - 2008-03-05 04:56:58
|
I need QImage in order to display or use in GUI , for exa. in QFrame or QLabel , I can convert the Image to QImage , but the problem is that I haven't access to Image object without saving that , also I can convert the figure (Plot) to string or buffer but I don't know what should I do after that and how convert it to Image. What about numpy or Numerical Python , may I use fromstring or another function ? Or what about savining the string binary or buffer in StringIO and then convert to QImage ? Christopher Barker wrote: > > sa6113 wrote: >> Would you please help me ? >> I want to load data to Image (QImage) from String or binary String >> without >> using PIL module . > > you can load data straight into a numpy array with numpy.fromstring() -- > if it's in an easy format (RGB, RGBA), then you should be able to go > from there. > > What do you want to do with the image data? > > -CHB > > > -- > 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 > > Chr...@no... > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > > -- View this message in context: http://www.nabble.com/how-load-data-to-Image-from-String--tp15784115p15843273.html Sent from the matplotlib - users mailing list archive at Nabble.com. |