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;
|
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);
|
||||||
im.set(0xffffffff);
|
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…
Add table
Reference in a new issue