Hi list,
I’m trying to draw 2 PNGs on a GraphicsContext MemoryDC
pdc = wx.PaintDC(self)
mdc = wx.MemoryDC(wx.EmptyBitmap(900,600))
gc = wx.GCDC(mdc)
gc.DrawBitmap
(self.bkg, 0, 0)
gc.DrawBitmap(self.nr, 68, 277, True)
gc.DrawBitmap(self.nl, 373, 277, True)
unfortunately the alphablending information is not used properly and in the resulting image the blend of the bitmaps (nr and nl) is done with black instead of the actual background.
WARNING: the screenshots might not be safe for work in some places (full frontal nudity)
http://cms.ro/vs.jpg
If I’m doing the drawing directly on the PaintDC the blending is OK BUT I lose the Double Buffering.
here is how the image looks if I move the drawing after the blit of the MemoryDC image
pdc.Blit(0,0,900,600, mdc, 0,0)
pdc.DrawBitmap([self.nr](http://self.nr), 68, 277, True)
pdc.DrawBitmap([self.nl](http://self.nl), 373, 277, True)
Is this a bug in the GCDC code or am I doing something wrong? What can I try?
I’m using the latest preview (2.8.1.2.20070209) on Windows SP2, python 2.4
Thank you in advance.
Peter.
···
–
There is NO FATE, we are the creators.