|
From: Vinnie <th...@ya...> - 2009-04-28 13:27:58
|
> From: Lorne Laliberte <lo...@in...> > You could also just render into a 32-bit buffer (RGBA, > BGRA, or whatever suits your needs) and then blend that buffer onto > your final output surface. Thats exactly what I am trying to accomplish. > I should clarify: in practical terms, the anti-aliasing > coverage information is preserved if you output onto a 32-bit > surface with a transparent background, i.e. a buffer that has > been cleared with a transparent color(0,0,0,0). So you are saying that agg already supports the feature I need? Well that will save me time. Just to be clear, I am currently using: typedef agg::pixfmt_bgr24 pfmt_type; typedef agg::renderer_base<pfmt_type> rbase_type; typedef agg::renderer_scanline_aa_solid<rbase_type> rsolid_type; So all I would need to do is switch to: typedef agg::pixfmt_bgra32 pfmt_type; That would be pretty sweet! You just saved me a few days of frustration! Whats with all the "premultiply" variations? And whats the difference between regular and "plain"? |