drawing to wxBitmap with alpha channel

Stefan Csomor csomor at advancedconcepts.ch
Wed Oct 11 07:17:17 PDT 2006


Hi 

> Does the proper method to draw onto a wxBitmap looks like 
> this in 2.7.1?
> 
> wxBitmap b = wxBitamp(w, h, 32);
> wxMemoryDC mdc;
> b.SelectObject(b);
> wxGraphcsContext gc(mdc);

please bear with us a little longer, before we have finished the API for
bitmap based contexts

> As I understand, now I can set alpha value for color that is 
> used by wxPen.

yes, but it is only taken into account when using a graphics context
either directly or via the wxGCDC (name change pending)

Best,

Stefan




More information about the wx-users mailing list