SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] First cut on a QtAgg backend

From: Sigve T. <si...@tj...> - 2005年01月31日 19:58:03
John Hunter wrote:
> Sigve> That probably leaves us with the OSX problems, though. Ahh,
> Sigve> fixed in CVS, ok then.
>
>I'm lost here -- as far as I know the endianess problem *was not*
>fixed in CVS. I did add an agg method tostring_bgra to CVS which
>appears to fix the reversed color problem. I haven't had a chance to
>test this on OSX since my powerbook is at home...
>
> 
>
Sorry about that, it came out wrong. Yes the inversed color could be 
fixed (I have not tested the CVS-version yet), the endiannes is not. You 
could try to change the endian in FigureCanvasQtAgg.draw()
 self.qimage = qt.QImage(self.stringBuffer,
 self.renderer.width,
 self.renderer.height,
 32,
 None,
 0,
 qt.QImage.IgnoreEndian,
 )
to
 self.qimage = qt.QImage(self.stringBuffer,
 self.renderer.width,
 self.renderer.height,
 32,
 None,
 0,
 qt.QImage.BigEndian,
 )
Or perhaps qt.QImage.LittleEndian if that is the way the conversion 
should go.
Good luck!
Regards,
Sigve

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /