From 4276f01404ff31ee72b49ab01b26e48f389c7052 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 21 Jan 2020 15:11:06 +0000 Subject: [PATCH] Init output image with transparent color and 255 alpha. --- utils/svg2png/svg2png.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/svg2png/svg2png.cpp b/utils/svg2png/svg2png.cpp index edb57ea92..ab2ddab7b 100644 --- a/utils/svg2png/svg2png.cpp +++ b/utils/svg2png/svg2png.cpp @@ -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);