* @brief A helper function to create an image from a single bitmap */
| 1706 | * @brief A helper function to create an image from a single bitmap |
| 1707 | */ |
| 1708 | static void |
| 1709 | single_bitmap_to_image (const lay::ViewOp &view_op, lay::Bitmap &bitmap, |
| 1710 | tl::PixelBuffer *pimage, const lay::DitherPattern &dither_pattern, const lay::LineStyles &line_styles, |
| 1711 | double dpr, unsigned int width, unsigned int height) |
| 1712 | { |
| 1713 | std::vector <lay::ViewOp> view_ops; |
| 1714 | view_ops.push_back (view_op); |
| 1715 | |
| 1716 | std::vector <lay::Bitmap *> pbitmaps; |
| 1717 | pbitmaps.push_back (&bitmap); |
| 1718 | |
| 1719 | lay::bitmaps_to_image (view_ops, pbitmaps, dither_pattern, line_styles, dpr, pimage, width, height, false, 0); |
| 1720 | } |
| 1721 | |
| 1722 | tl::PixelBuffer |
| 1723 | LayoutViewBase::icon_for_layer (const LayerPropertiesConstIterator &iter, unsigned int w, unsigned int h, double dpr, unsigned int di_off, bool no_state) |
no test coverage detected