Charlie Moad wrote:
> I'll paste the block of interest to save
> you a little digging.
>
> bbox = self.replot
> w, h = int(bbox.width()), int(bbox.height())
> l, t = bbox.ll().x().get(), bbox.ur().y().get()
> reg = self.copy_from_bbox(bbox)
So this is one copy.
> stringBuffer = reg.to_string()
Is this another? or does to_string not copy?
> qImage = qt.QImage(stringBuffer, w, h, 32, None, 0,
> qt.QImage.IgnoreEndian)
Here we have difference from wx -- AFAICT, a wx.Image doesn't do rgba32,
it does RGB24, with a separate 8bit alpha channel. if to_string copies
anyway, then that wouldn't make much difference.
But do we really need alpha here anyway?
> self.pixmap.convertFromImage(qImage, qt.QPixmap.Color)
> p.drawPixmap(qt.QPoint(l, self.renderer.height-t), self.pixmap)
And this looks like wx.
I wish I had more time to work on this, but I'm in a crunch that I'll be
in for while....
-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
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel