Init output image with transparent color and 255 alpha.

This commit is contained in:
Artem Pavlenko 2020-01-21 15:11:06 +00:00
parent 1a0b1a1e77
commit 4276f01404

View file

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