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

Method RecolourBitmap

libraries/lib-theme/Theme.cpp:276–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276void ThemeBase::RecolourBitmap( int iIndex, wxColour From, wxColour To )
277{
278 wxImage Image( Bitmap( iIndex ).ConvertToImage() );
279
280 std::unique_ptr<wxImage> pResult = ChangeImageColour(
281 &Image, From, To );
282 ReplaceImage( iIndex, pResult.get() );
283}
284
285int ThemeBase::ColourDistance( wxColour & From, wxColour & To ){
286 return

Callers

nothing calls this directly

Calls 2

ChangeImageColourFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected