transparency blit

Started by
3 comments, last by Empirical 19 years, 2 months ago
How do you make parts of a bitmap transparent?
Advertisement
Assuming that you are using the Win32 API, this is one method.
Or in Direct3D you can use

dev.SetRenderState(D3DRENDERSTATE_ALPHABLENDENABLE, 1);// and the make compinations of  dev.SetRenderState(D3DRENDERSTATE_SRCBLEND, D3DBLEND_INVSRCCOLOR /*D3DBLEND_SRCCOLOR or ...*/); dev.SetRenderState(D3DRENDERSTATE_DESTBLEND, ...);
I was using win32. I was looking at the link. I tried to compile the source code but it would get an error. It couldn't find the SelectBitmap() function.
Change SelectBitmap to SelectObject

This topic is closed to new replies.

Advertisement