From b6e9711add7a42c260cce5c133916668b298c129 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 22 Jan 2020 10:49:10 +0000 Subject: [PATCH] Mark output image as premultiplied alpha --- utils/svg2png/svg2png.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/svg2png/svg2png.cpp b/utils/svg2png/svg2png.cpp index fde92da36..269e722ed 100644 --- a/utils/svg2png/svg2png.cpp +++ b/utils/svg2png/svg2png.cpp @@ -87,8 +87,7 @@ struct main_marker_visitor std::clog << "SVG BBOX:" << b << std::endl; std::clog << "Output image dimensions:[" << output_width << "," << output_height << "]" << std::endl; } - mapnik::image_rgba8 im(output_width, output_height); - im.set(0x00ffffff); + mapnik::image_rgba8 im(output_width, output_height, true, true); agg::rendering_buffer buf(im.bytes(), im.width(), im.height(), im.row_size()); pixfmt pixf(buf); renderer_base renb(pixf);