Skip to main content
gamedev.net
🔒 Locked

transparency

Started by arkam Jan 15, 2001 at 10:01 AM 0 replies 350+ views
Original Post
arkam
arkam
hi, i am a newby and then i have a simple question that is ruining my programmer life : i draw a background in a CWnd and then i BitBlt a bitmap over it ... and the rectangle around my bitmap appears ! (( how can i use transparency ? i am working with GDI under VC++ 6.0 thanks !
Boke
Boke
Have you tried this ->
BOOL TransparentBlt(
HDC hdcDest, // handle to destination DC
int nXOriginDest, // x-coord of destination upper-left corner
int nYOriginDest, // y-coord of destination upper-left corner
int nWidthDest, // width of destination rectangle
int hHeightDest, // height of destination rectangle
HDC hdcSrc, // handle to source DC
int nXOriginSrc, // x-coord of source upper-left corner
int nYOriginSrc, // y-coord of source upper-left corner
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
UINT crTransparent // color to make transparent
);

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.