+ dc.SetPen( *wxWHITE_PEN );
+ dc.DrawRectangle( 150, 30, 100, 100 );
+
+ if (my_anti && my_anti->Ok()) dc.DrawBitmap( *my_anti, 250, 140 );
+
+ dc.DrawText( "PNG handler", 30, 135 );
+ if (my_horse_png && my_horse_png->Ok()) dc.DrawBitmap( *my_horse_png, 30, 150 );
+
+ dc.DrawText( "JPEG handler", 30, 365 );
+ if (my_horse_jpeg && my_horse_jpeg->Ok()) dc.DrawBitmap( *my_horse_jpeg, 30, 380 );
+
+ dc.DrawText( "GIF handler", 30, 595 );
+ if (my_horse_gif && my_horse_gif->Ok()) dc.DrawBitmap( *my_horse_gif, 30, 610 );
+
+ dc.DrawText( "BMP handler", 30, 815 );
+ if (my_horse_bmp && my_horse_bmp->Ok()) dc.DrawBitmap( *my_horse_bmp, 30, 830 );
+}
+
+void MyCanvas::CreateAntiAliasedBitmap()
+{
+ wxBitmap bitmap( 300, 300 );
+
+ wxMemoryDC dc;
+
+ dc.SelectObject( bitmap );
+
+ dc.Clear();
+
+ dc.SetFont( wxFont( 24, wxDECORATIVE, wxDEFAULT, wxDEFAULT ) );
+ dc.SetTextForeground( "RED" );
+ dc.DrawText( "This is anti-aliased Text.", 20, 20 );
+ dc.DrawText( "And a Rectangle.", 20, 60 );
+
+ dc.SetBrush( *wxRED_BRUSH );