MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / pythonCaptureScreenShot

Function pythonCaptureScreenShot

source/mrviewerpy/MRPythonViewer.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33} )
34
35static void pythonCaptureScreenShot( MR::Viewer* viewer, const char* path )
36{
37 MR::CommandLoop::runCommandFromGUIThread( [&] ()
38 {
39 auto image = viewer->captureSceneScreenShot();
40 (void)MR::ImageSave::toAnySupportedFormat( image, path ); //TODO: process potential error
41 } );
42}
43
44static void pythonCaptureUIScreenShot( MR::Viewer* viewer, const char* path )
45{

Callers

nothing calls this directly

Calls 2

toAnySupportedFormatFunction · 0.50

Tested by

no test coverage detected