Init output image with transparent color and 255 alpha.
This commit is contained in:
parent
1a0b1a1e77
commit
4276f01404
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue