Fix for heatmap powiaty making output colored

Background image was grayscale and IM needed to be told to promote it to color.
master
Tomasz Golinski 2021-07-27 23:47:06 +02:00
rodzic 8ef3e92ca3
commit 6e959ea058
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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");