From 6e959ea0583810a5f93f8f0d03ee7d5200562c2e Mon Sep 17 00:00:00 2001 From: Tomasz Golinski Date: Tue, 27 Jul 2021 23:47:06 +0200 Subject: [PATCH] Fix for heatmap powiaty making output colored Background image was grayscale and IM needed to be told to promote it to color. --- heat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/heat.cpp b/heat.cpp index caf7817..e75f1f6 100644 --- a/heat.cpp +++ b/heat.cpp @@ -44,6 +44,7 @@ void Heat::generate(const std::string& filename, const pCaches& points, int stam Magick::Image contour(MAPS_DIR / mp->map_file); Magick::Image heatmap(mp->size_x, mp->size_y, "RGBA", Magick::CharPixel, &image[0]); + contour.type(Magick::TrueColorType); contour.composite(heatmap, 0, 0, Magick::OverCompositeOp); contour.write(filename); // heatmap.write("geostat_heat.png");