sa6113 wrote:
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
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
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
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.
Is there anyway to use the modules that are already on the system, or those
that are pure Python ?
I want to show a plot that draws with backend agg in my GUI , I mean in a
specified place that its type is Qlabel or QFrame , I don't want to save the
plot befor show it.
Christopher Barker wrote: