bool MyApp::OnInit()
{
m_image = wxImage("kclub.bmp", wxBITMAP_TYPE_BMP);
+
+ // any unused colour will do
+ m_image.SetMaskColour( 0, 255, 255 );
+
if ( !m_image.Ok() )
{
wxLogError("Can't load the test image, please copy it to the "
wxPoint(20,20), wxSize(600,450));
frame->SetBackgroundColour (wxColour (0,80,60));
-
+ frame->Clear();
frame->Show (TRUE);
SetTopWindow (frame);
return TRUE;
wxBitmap bmp = img2.ConvertToBitmap ();
wxClientDC dc (this);
- dc.DrawBitmap (img2.ConvertToBitmap(), event.m_x + offset.x, event.m_y + offset.y);
+ dc.DrawBitmap (img2.ConvertToBitmap(), event.m_x + offset.x, event.m_y + offset.y, TRUE);
}
// without interpolation, and without offset correction
wxBitmap bmp = img2.ConvertToBitmap ();
wxClientDC dc (this);
- dc.DrawBitmap (bmp, event.m_x, event.m_y);
+ dc.DrawBitmap (bmp, event.m_x, event.m_y, TRUE);
}