pass useMask=true for the toucan images
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1d1972fce1
commit
59b7a28003
@ -785,24 +785,24 @@ void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
|
||||
int x = 750, y = 10, yy = 170;
|
||||
|
||||
dc.DrawText(wxT("Original toucan"), x+50, y);
|
||||
dc.DrawBitmap(my_toucan, x, y+15);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
dc.DrawBitmap(my_toucan_head, x, y+15, true);
|
||||
}
|
||||
|
||||
if (my_smile_xbm.Ok())
|
||||
|
Loading…
Reference in New Issue
Block a user