MemoryDC drawing on alpha channel

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
number4
Earned a small fee
Earned a small fee
Posts: 17
Joined: Wed Mar 09, 2005 6:12 pm

MemoryDC drawing on alpha channel

Post by number4 » Sun May 01, 2005 6:16 pm

Previously when a wxBitmap had an alpha channel and you drew rects or points with a memoryDC on it these shapes would have the same alpha values as the pixels before. There was no way to change this except to set each pixel with setalpha(x,y,val);
I don't see that there are any changes or other solutions in the latest release from looking at the documentation, but havn't tried it.
Also, it seems like the white pen is an exception to this, or I am making some ind of mistake in my code. Does anyone have any tips?

Post Reply