use pixfmt pre for the sake of clarity
This commit is contained in:
parent
f682fcc6d1
commit
84842f59c7
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@
|
||||||
// agg
|
// agg
|
||||||
#include "agg_rendering_buffer.h"
|
#include "agg_rendering_buffer.h"
|
||||||
#include "agg_pixfmt_rgba.h"
|
#include "agg_pixfmt_rgba.h"
|
||||||
|
#include "agg_color_rgba.h"
|
||||||
|
|
||||||
// boost
|
// boost
|
||||||
#include <boost/scoped_array.hpp>
|
#include <boost/scoped_array.hpp>
|
||||||
|
@ -202,7 +203,7 @@ void image_32::premultiply()
|
||||||
void image_32::demultiply()
|
void image_32::demultiply()
|
||||||
{
|
{
|
||||||
agg::rendering_buffer buffer(data_.getBytes(),width_,height_,width_ * 4);
|
agg::rendering_buffer buffer(data_.getBytes(),width_,height_,width_ * 4);
|
||||||
agg::pixfmt_rgba32 pixf(buffer);
|
agg::pixfmt_rgba32_pre pixf(buffer);
|
||||||
pixf.demultiply();
|
pixf.demultiply();
|
||||||
premultiplied_ = false;
|
premultiplied_ = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue