- dc.DrawText( "XBM bitmap", 30, 1975 );
- dc.DrawText( "(green on red)", 30, 1990 );
- dc.SetTextForeground( "GREEN" );
- dc.SetTextBackground( "RED" );
- dc.DrawBitmap( *my_smile_xbm, 30, 2010 );
-
- dc.SetTextForeground( "BLACK" );
- dc.DrawText( "After wxImage conversion", 150, 1975 );
- dc.DrawText( "(red on white)", 150, 1990 );
- dc.SetTextForeground( "RED" );
- wxImage i = my_smile_xbm->ConvertToImage();
+ int x = 750, y = 10, yy = 170;
+
+ dc.DrawText(wxT("Original toucan"), x+50, y);
+ dc.DrawBitmap(my_toucan, x, y+15, true);
+ y += yy;
+ dc.DrawText(wxT("Flipped horizontally"), x+50, y);
+ dc.DrawBitmap(my_toucan_flipped_horiz, x, y+15, true);
+ y += yy;
+ dc.DrawText(wxT("Flipped vertically"), x+50, y);
+ dc.DrawBitmap(my_toucan_flipped_vert, x, y+15, true);
+ y += yy;
+ dc.DrawText(wxT("Flipped both h&v"), x+50, y);
+ dc.DrawBitmap(my_toucan_flipped_both, x, y+15, true);
+
+ y += yy;
+ dc.DrawText(wxT("In greyscale"), x+50, y);
+ dc.DrawBitmap(my_toucan_grey, x, y+15, true);
+
+ y += yy;
+ dc.DrawText(wxT("Toucan's head"), x+50, y);
+ dc.DrawBitmap(my_toucan_head, x, y+15, true);
+
+ y += yy;
+ dc.DrawText(wxT("Scaled with normal quality"), x+50, y);
+ dc.DrawBitmap(my_toucan_scaled_normal, x, y+15, true);
+
+ y += yy;
+ dc.DrawText(wxT("Scaled with high quality"), x+50, y);
+ dc.DrawBitmap(my_toucan_scaled_high, x, y+15, true);
+
+ y += yy;
+ dc.DrawText(wxT("Blured"), x+50, y);
+ dc.DrawBitmap(my_toucan_blur, x, y+15, true);
+ }
+
+ if (my_smile_xbm.Ok())
+ {
+ int x = 300, y = 1800;
+
+ dc.DrawText( _T("XBM bitmap"), x, y );
+ dc.DrawText( _T("(green on red)"), x, y + 15 );
+ dc.SetTextForeground( _T("GREEN") );
+ dc.SetTextBackground( _T("RED") );
+ dc.DrawBitmap( my_smile_xbm, x, y + 30 );
+
+ dc.SetTextForeground( *wxBLACK );
+ dc.DrawText( _T("After wxImage conversion"), x + 120, y );
+ dc.DrawText( _T("(red on white)"), x + 120, y + 15 );
+ dc.SetTextForeground( wxT("RED") );
+ wxImage i = my_smile_xbm.ConvertToImage();