[wx2.8.0, wxGTK, gcc4.1.2] wxDC::Blit() and wxMask again
Kövesdi György
kgy at deverto.hu
Mon Jan 29 05:06:10 PST 2007
> Yes: the bitmap contents. You must clear it before setting the mask, its
> initial content is random.
How can I do it? The SetMask() function must be called before the
SelectObject() function (at least according to the previous discussions), so
the wxDC::Clear() function is not applicable.
BTW I don't understand how does it work: in 2.6.3 the mask was created at last
(when the bitmap was ready), but here the mask must be created first (when
the bitmap is empty). If the mask is created just before the wxDC::Blit() is
called, it does not work.
Regards
Gyorgy Kovesdi
More information about the wx-users
mailing list