MCPcopy Create free account
hub / github.com/audacity/audacity / SetBitmap

Method SetBitmap

libraries/lib-wx-wrappers/RoundedStaticBitmap.cpp:97–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95#if wxCHECK_VERSION(3, 1, 6)
96
97void RoundedStaticBitmap::SetBitmap(const wxBitmapBundle& bitmap)
98{
99 mImage = bitmap.GetBitmapFor(this).ConvertToImage();
100 auto roundedImage = RoundedImage(mImage, mRadius);
101 wxStaticBitmap::SetBitmap(wxBitmapBundle::FromImage(roundedImage));
102}
103
104#else
105

Callers

nothing calls this directly

Calls 2

RoundedImageFunction · 0.85
wxBitmapClass · 0.50

Tested by

no test coverage detected