PDA

View Full Version : More DirectDraw fun



Crisp_N_Dry
21-10-2004, 05:23 PM
I'm working with the JEDI DirectDraw header conversions and I'm attempting to do the following:

When blitting an image to a surface, on certain occasions I want to blit the transparency mask instead of the image. I am using 256 color mode and have tried setting the low value of the color key to 0 and the high value of the color key to 254 so that only 255(My transparent palette entry) is drawn but it doesn't seem to work although according to the MSDN files this should be possible (Perhaps it need to be supported by the hardware?). Alternatively I am wondering if there is a way of borrowing another images mask and using that when blitting an image?