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

Method get_image_with_options

src/laybasic/laybasic/layLayoutViewBase.cc:3075–3088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3073
3074#if defined(HAVE_QT)
3075QImage
3076LayoutViewBase::get_image_with_options (unsigned int width, unsigned int height, int linewidth, int oversampling, double resolution, double font_resolution,
3077 tl::Color background, tl::Color foreground, tl::Color active, const db::DBox &target_box, bool monochrome)
3078{
3079 tl::SelfTimer timer (tl::verbosity () >= 11, tl::to_string (tr ("Get image")));
3080
3081 refresh ();
3082
3083 if (monochrome) {
3084 return mp_canvas->image_with_options_mono (width, height, linewidth, background, foreground, active, target_box).to_image_copy ();
3085 } else {
3086 return mp_canvas->image_with_options (width, height, linewidth, oversampling, resolution, font_resolution, background, foreground, active, target_box).to_image_copy ();
3087 }
3088}
3089#endif
3090
3091tl::PixelBuffer

Callers 3

cm_printMethod · 0.80
get_image_with_optionsFunction · 0.80

Calls 7

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

Tested by

no test coverage detected