libraries/lib-theme/Theme.cpp
// Legacy function to allow use of an XPM where no theme image was defined.
// Bit depth and mask needs review.
// Note that XPMs don't offer translucency, so unsuitable for a round shape overlay, 
// for example.
Legacy function to allow use of an XPM where no theme image was defined.
Bit depth and mask needs review.
Note that XPMs don't offer translucency, so unsuitable for a round shape overlay,
for example.
Legacy function to allow use of an XPM where no theme image was defined . Bit depth and mask needs review . Note that XPMs don ' t offer translucency so unsuitable for a round shape overlay for example .
void ThemeBase::RegisterImage( int &flags, int &iIndex, char const ** pXpm, const wxString & Name )
{
   wxBitmap Bmp( pXpm );
   wxImage Img( Bmp.ConvertToImage() );
   Img.SetMaskColour(0xDE, 0xDE, 0xDE);
   Img.InitAlpha();
   RegisterImage( flags, iIndex, Img, Name );
}
void ThemeBase :: RegisterImage ( int & flags , int & iIndex , char const * * pXpm , const wxString & Name ) { wxBitmap Bmp ( pXpm ) ; wxImage Img ( Bmp . ConvertToImage ( ) ) ; Img . SetMaskColour ( 0xDE , 0xDE , 0xDE ) ; Img . InitAlpha ( ) ; RegisterImage ( flags , iIndex , Img , Name ) ; }
Legacy function to allow use of an XPM where no theme image was defined.
Legacy function to allow use of an XPM where no theme image was defined .
// The next line recommended by http://forum.audacityteam.org/viewtopic.php?f=50&t=96765 //dmazzoni: the top line does not work on wxGTK //wxBitmap Bmp2( Img, 32 ); //wxBitmap Bmp2( Img );