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

Method DrawBitmap

src/widgets/ImageRoll.cpp:302–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void ImageRoll::DrawBitmap(wxDC &dc, wxBitmap &bitmap,
303 int x, int y, int logicalFunc)
304{
305 auto func = static_cast< wxRasterOperationMode >( logicalFunc );
306 if (func == wxCOPY)
307 dc.DrawBitmap(bitmap, x, y);
308 else {
309 wxMemoryDC memDC;
310 memDC.SelectObject(bitmap);
311 dc.Blit(x, y, bitmap.GetWidth(), bitmap.GetHeight(),
312 &memDC, 0, 0, func);
313 }
314}
315
316void ImageRoll::Draw(wxDC &dc, wxRect rect)
317{

Callers 15

OnPaintMethod · 0.80
OnPaintMethod · 0.80
OnPaintMethod · 0.80
DrawSyncLockTilesMethod · 0.80
PlotPaintMethod · 0.80
CreateBitmapMethod · 0.80
DrawGlyphsMethod · 0.80
DrawMethod · 0.80
SyncLockDrawFunctionMethod · 0.80
OnPaintMethod · 0.80

Calls 2

GetHeightMethod · 0.80
GetWidthMethod · 0.45

Tested by

no test coverage detected