Re: [matplotlib-devel] blitting and byteswapping a buffer

2008-03-18 Thread Darren Dale
On Tuesday 18 March 2008 02:30:29 pm Michael Droettboom wrote: > Darren Dale wrote: > > I discovered another blitting bug in backend_qt4agg.py. Qt expects a > > pixmap stringBuffer formatted in ARGB, but mpl formats in RGBA. The qt4 > > backend usually uses the _renderer.tostring_bgra method to ret

Re: [matplotlib-devel] blitting and byteswapping a buffer

2008-03-18 Thread Michael Droettboom
Darren Dale wrote: > I discovered another blitting bug in backend_qt4agg.py. Qt expects a pixmap > stringBuffer formatted in ARGB, but mpl formats in RGBA. The qt4 backend > usually uses the _renderer.tostring_bgra method to return a properly > formatted buffer: > > if QtCore.QSysInfo.ByteOrder

[matplotlib-devel] blitting and byteswapping a buffer

2008-03-12 Thread Darren Dale
I discovered another blitting bug in backend_qt4agg.py. Qt expects a pixmap stringBuffer formatted in ARGB, but mpl formats in RGBA. The qt4 backend usually uses the _renderer.tostring_bgra method to return a properly formatted buffer: if QtCore.QSysInfo.ByteOrder == QtCore.QSysInfo.LittleEndi