MCPcopy Create free account
hub / github.com/KLayout/klayout / get_screenshot

Method get_screenshot

src/laybasic/laybasic/layLayoutViewBase.cc:2967–2975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2965
2966#if defined(HAVE_QT)
2967QImage
2968LayoutViewBase::get_screenshot ()
2969{
2970 tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (tr ("Save screenshot")));
2971
2972 refresh ();
2973
2974 return mp_canvas->screenshot ().to_image_copy ();
2975}
2976#endif
2977
2978tl::PixelBuffer

Callers 2

Calls 6

verbosityFunction · 0.85
to_image_copyMethod · 0.80
screenshotMethod · 0.80
refreshFunction · 0.70
to_stringFunction · 0.50
trFunction · 0.50

Tested by

no test coverage detected