kopia lustrzana https://gitlab.com/tomaszg/geostat
Fix for heatmap powiaty making output colored
Background image was grayscale and IM needed to be told to promote it to color.master
rodzic
8ef3e92ca3
commit
6e959ea058
1
heat.cpp
1
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");
|
||||
|
|
Ładowanie…
Reference in New Issue