| 3073 | |
| 3074 | #if defined(HAVE_QT) |
| 3075 | QImage |
| 3076 | LayoutViewBase::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 | |
| 3091 | tl::PixelBuffer |
no test coverage detected