VPTissue Reference Manual
|
Collection of functions and data concerning PNG export of Sim objects. More...
#include <BitmapGraphicsExporter.h>
Static Public Member Functions | |
static bool | Export (std::shared_ptr< SimPT_Sim::Sim > sim, std::string const &file_path, bool overwrite=true, std::shared_ptr< BitmapGraphicsPreferences > prefs=std::make_shared< BitmapGraphicsPreferences >()) |
Export snapshot of canvas in PNG format. More... | |
Collection of functions and data concerning PNG export of Sim objects.
Definition at line 38 of file BitmapGraphicsExporter.h.
|
static |
Export snapshot of canvas in PNG format.
e | Event containing canvas to render. |
path | Path where to save image. |
overwrite | Whether to overwrite if path already exists. |
size_x | Image width |
size_y | Image height |
Definition at line 48 of file BitmapGraphicsExporter.cpp.
References SimPT_Shell::MeshDrawer::Draw().
Referenced by SimPT_Shell::Session::SimSession::GetExporters().