Mark output image as premultiplied alpha

This commit is contained in:
Artem Pavlenko 2020-01-22 10:49:10 +00:00
parent 97e33ec8ca
commit b6e9711add

View file

@ -87,8 +87,7 @@ struct main_marker_visitor
std::clog << "SVG BBOX:" << b << std::endl;
std::clog << "Output image dimensions:[" << output_width << "," << output_height << "]" << std::endl;
}
mapnik::image_rgba8 im(output_width, output_height);
im.set(0x00ffffff);
mapnik::image_rgba8 im(output_width, output_height, true, true);
agg::rendering_buffer buf(im.bytes(), im.width(), im.height(), im.row_size());
pixfmt pixf(buf);
renderer_base renb(pixf);