| 406 | } |
| 407 | |
| 408 | void Conductor::savePixelTree(Execution *e, const char* path, int compression_factor) const { |
| 409 | const auto &nt = e->tree(); |
| 410 | pixel_view::PtCanvas pc(nt); |
| 411 | auto pi = pc.get_pimage(); |
| 412 | pc.setCompression(compression_factor); |
| 413 | int width = pi->pixel_size()*pc.totalSlices(); |
| 414 | int height = pi->pixel_size()*nt.node_stats().maxDepth(); |
| 415 | pi->resize({width,height}); |
| 416 | pc.redrawAll(true); |
| 417 | pi->raw_image().save(path); |
| 418 | } |
| 419 | |
| 420 | void Conductor::saveSearch(Execution *e, const char *path) const |
| 421 | { |
nothing calls this directly
no test coverage detected