Model centered when exporting to png. Added some comments to the rasterization.

This commit is contained in:
tamasmeszaros 2018-05-21 13:46:41 +02:00
parent 0f552832da
commit 6b5c0073a7
4 changed files with 122 additions and 81 deletions

View file

@ -316,14 +316,17 @@ public:
};
template<FilePrinterFormat format, class...Args>
void print_to(std::string dirpath, Args...args);
void print_to(std::string dirpath,
double width_mm,
double height_mm,
Args...args);
void print_to_png(std::string dirpath, long width_px, long height_px,
double width_mm, double height_mm);
void print_to_png(std::string dirpath) {
// Where should this be specified?
print_to_png(dirpath, 1440, 2560, 40.0, 72.0);
// Will need some GUI dialogue perhaps for these to be specified.
print_to_png(dirpath, 1440, 2560, 68.0, 120.0);
}
private: