Respect image mask in the docview sample.

Draw images with transparency, if any.

See #13881.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-01-19 22:17:17 +00:00
parent 41749c76d8
commit 11c278c43c

View File

@@ -336,7 +336,7 @@ void ImageView::OnDraw(wxDC* dc)
wxImage image = GetDocument()->GetImage();
if ( image.IsOk() )
{
dc->DrawBitmap(wxBitmap(image), 0, 0);
dc->DrawBitmap(wxBitmap(image), 0, 0, true /* use mask */);
}
}