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

Function MakeGraphicsContext

src/effects/DynamicRangeProcessorPanelCommon.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16namespace DynamicRangeProcessorPanel
17{
18std::unique_ptr<wxGraphicsContext> MakeGraphicsContext(const wxPaintDC& dc)
19{
20 auto gc = wxGraphicsContext::Create(dc);
21 gc->SetAntialiasMode(wxANTIALIAS_DEFAULT);
22 gc->SetInterpolationQuality(wxINTERPOLATION_BEST);
23 return std::unique_ptr<wxGraphicsContext>(gc);
24}
25
26wxColor GetColorMix(const wxColor& a, const wxColor& b, double aWeight)
27{

Callers 4

DrawTransferFunctionFunction · 0.85
OnPaintMethod · 0.85
OnPaintMethod · 0.85
PaintMeterMethod · 0.85

Calls 1

CreateFunction · 0.85

Tested by

no test coverage detected