This is a way to do it: (although it doesnt sound fast, it uses pure blitfunctions so potentially it could be fast enough)
- Create an offscreen bitmap the size of your window. (you only need to do this once, you could keep it for subsequent paints)
- Fill it with the solid color.
- Cookiecut holes in the offscreen bitmap with a distinct color (purple for instance)
- bitblt the entire bitmap onto your window, half opaque and with purple as the colorkey. (so purple is not copied).
Toad
2009-09-14 07:19:31