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

Function single_bitmap_to_image

src/laybasic/laybasic/layLayoutViewBase.cc:1708–1720  ·  view source on GitHub ↗

* @brief A helper function to create an image from a single bitmap */

Source from the content-addressed store, hash-verified

1706 * @brief A helper function to create an image from a single bitmap
1707 */
1708static void
1709single_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
1722tl::PixelBuffer
1723LayoutViewBase::icon_for_layer (const LayerPropertiesConstIterator &iter, unsigned int w, unsigned int h, double dpr, unsigned int di_off, bool no_state)

Callers 1

icon_for_layerMethod · 0.85

Calls 2

bitmaps_to_imageFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected