How use numpy in order to create Image object from string ?
.
.
.
size = canvas.get_width_height(                          )
buffer = canvas.tostring_rgb()
img = numpy.empty(size,numpy.uint32)
img = numpy.fromstring(buffer,numpy.uint32)

img is an array , but I want an Image object (without using PIL ).


sa6113 wrote:
> 
> Would you please help me ?
> I want to load data to Image (QImage) from String or binary String without
> using PIL module .
> 

-- 
View this message in context: 
http://www.nabble.com/how-load-data-to-Image-from-String--tp15784115p15822415.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to