GDI Drawing Question

Hi,

I'd like to draw on a panel 2 rectangles: the second one sould have an Alpha value. I tried to use wxDC.SetLogicalFunction to combine the pixel of the two rectangles, but i can't find a way to combine them in a way that makes the rectangle on the top to seem opaque.

I thought to use wxImage to create 2 images (with alpha), rappresenting my rectangles, and then converting to wxBitmaps and then usign wxDC functions to blit 'em on the screen, but I don't know if wxBitmap support Alpha (I don't think so ...) and I don't know if Blitting support it, too.

There's anyone how can help me?

Mybe I have to use PIL with wxPython?? How??

tnx

I try to change my question:

there is a multiplatform Canvas which support Alpha blending when drawing primitives like rectangles and lines???