MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / grabFramebuffer

Method grabFramebuffer

src/Gui/View3DViewerPy.cpp:693–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691}
692
693Py::Object View3DInventorViewerPy::grabFramebuffer(const Py::Tuple& args)
694{
695 if (!PyArg_ParseTuple(args.ptr(), "")) {
696 throw Py::Exception();
697 }
698 QImage img = _viewer->grabFramebuffer();
699
700 PythonWrapper wrap;
701 wrap.loadGuiModule();
702#if QT_VERSION < QT_VERSION_CHECK(6, 9, 0)
703 return wrap.fromQImage(img.mirrored());
704#else
705 return wrap.fromQImage(img.flipped(Qt::Vertical));
706#endif
707}
708
709Py::Object View3DInventorViewerPy::setOverrideMode(const Py::Tuple& args)
710{

Callers 2

_center_pixel_colorMethod · 0.45

Calls 5

loadGuiModuleMethod · 0.80
fromQImageMethod · 0.80
flippedMethod · 0.80
ExceptionClass · 0.50
ptrMethod · 0.45

Tested by 1

_center_pixel_colorMethod · 0.36