Is there a way in wxWidget to perform alpha blending operations, such as multiplying an alpha bitmap by the RGB of another bitmap to create new images (for example, rendering a photo as a smooth round shape).
Although I didn’t do alpha blending, I believe wxGraphicContext is what you need.http://docs.wxwidgets.org/stable/wx_wxgraphicscontext.htmlIn a graphical context (on Win32), I have the option to draw a flicker using the following in a paint event handler:
void OnPaint( wxPaintEvent& e ) { wxBufferedPaintDC dc( this ); wxGraphicsContext* gdc = wxGraphicsContext::Create( dc ); // you drawing code here }
EDIT: This email may offer a deeper understanding:http://www.nabble.com/Is-alpha-blending-implemented-when-using-DC's--td17183159.html