port over bgra -> rgba compositing fix from compositing branch
This commit is contained in:
parent
13189e0a55
commit
35cad0e049
1 changed files with 1 additions and 3 deletions
|
@ -40,13 +40,11 @@ template <typename T1, typename T2>
|
|||
void composite(T1 & im, T2 & im2, composite_mode_e mode)
|
||||
{
|
||||
typedef agg::rgba8 color;
|
||||
typedef agg::order_bgra order;
|
||||
typedef agg::order_rgba order;
|
||||
typedef agg::pixel32_type pixel_type;
|
||||
typedef agg::comp_op_adaptor_rgba<color, order> blender_type;
|
||||
typedef agg::pixfmt_custom_blend_rgba<blender_type, agg::rendering_buffer> pixfmt_type;
|
||||
typedef agg::renderer_base<pixfmt_type> renderer_type;
|
||||
typedef agg::comp_op_adaptor_rgba<color, order> blender_type;
|
||||
typedef agg::renderer_base<pixfmt_type> renderer_type;
|
||||
|
||||
agg::rendering_buffer source(im.getBytes(),im.width(),im.height(),im.width() * 4);
|
||||
agg::rendering_buffer mask(im2.getBytes(),im2.width(),im2.height(),im2.width() * 4);
|
||||
|
|
Loading…
Add table
Reference in a new issue