Mark output image as premultiplied alpha
This commit is contained in:
parent
97e33ec8ca
commit
b6e9711add
1 changed files with 1 additions and 2 deletions
|
@ -87,8 +87,7 @@ struct main_marker_visitor
|
||||||
std::clog << "SVG BBOX:" << b << std::endl;
|
std::clog << "SVG BBOX:" << b << std::endl;
|
||||||
std::clog << "Output image dimensions:[" << output_width << "," << output_height << "]" << std::endl;
|
std::clog << "Output image dimensions:[" << output_width << "," << output_height << "]" << std::endl;
|
||||||
}
|
}
|
||||||
mapnik::image_rgba8 im(output_width, output_height);
|
mapnik::image_rgba8 im(output_width, output_height, true, true);
|
||||||
im.set(0x00ffffff);
|
|
||||||
agg::rendering_buffer buf(im.bytes(), im.width(), im.height(), im.row_size());
|
agg::rendering_buffer buf(im.bytes(), im.width(), im.height(), im.row_size());
|
||||||
pixfmt pixf(buf);
|
pixfmt pixf(buf);
|
||||||
renderer_base renb(pixf);
|
renderer_base renb(pixf);
|
||||||
|
|
Loading…
Reference in a new issue