[wx2.8.0, wxGTK, gcc4.1.2] wxDC::Blit() and wxMask again

Vadim Zeitlin vadim at wxwindows.org
Mon Jan 29 05:09:21 PST 2007


On Mon, 29 Jan 2007 14:06:10 +0100 Kövesdi György <kgy at deverto.hu> wrote:

KG> >  Yes: the bitmap contents. You must clear it before setting the mask, its
KG> > initial content is random.
KG> How can I do it? The SetMask() function must be called before the 
KG> SelectObject() function (at least according to the previous discussions),

 I missed it, sorry. I'm not actually sure why this should be true but if
it is it looks like you need to select it to clear it, then unselect it,
set mask and select again.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list