SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] Cairo backend prospects

From: Steve C. <ste...@ya...> - 2007年01月15日 12:04:10
On Fri, 2007年01月12日 at 08:44 -0600, John Hunter wrote:
> >>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
> 
> Steve> I propose this new version of buffer_bgra32 (and
> Steve> buffer_argb32). I tested it with cairo and it seems to work
> Steve> OK.
> 
> This looks good -- please test it with one of the memleak scripts, eg
> a variant of units/memleak_hawaii.py to make sure everything is being
> cleaned up properly. If you feel motivated, please port these over to
> the other buffer methods. One way to do this cleanly would be to set
> up an enum of the agg pixel formats supported by agg::color_conv and
> then simply allow the user to pass in the pixel format desired. Ie,
> support 
> 
> color_conv_rgba32_to_abgr32
> color_conv_rgba32_to_argb32
> color_conv_rgba32_to_bgra32
> 
> in a single function with a single arg.
I've replaced buffer_argb32() and buffer_bgra32() with
Image::color_conv(format) and tested it for memory leaks and it seems
OK. I think this only affects the cairo backend, since the other
backends seem to use rgba and don't need to use a color conversion
method.
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com 

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 によって変換されたページ (->オリジナル) /