Call this member function to display bitmaps that have transparent or semitransparent pixels.
BOOL AlphaBlend(
int xDest,
int yDest,
int nDestWidth,
int nDestHeight,
CDC* pSrcDC,
int xSrc,
int ySrc,
int nSrcWidth,
int nSrcHeight,
BLENDFUNCTION blend
);
Parameters
xDest
Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
yDest
Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
nDestWidth
Specifies the width, in logical units, of the destination rectangle.
nDestHeight
Specifies the height, in logical units, of the destination rectangle.
pSrcDC
A pointer to the source device context.
xSrc
Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle.
ySrc
Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle.
nSrcWidth
Specifies the width, in logical units, of the source rectangle.
nSrcHeight
Specifies the height, in logical units, of the source rectangle.
blend
Specifies a BLENDFUNCTION structure.
Return Value
TRUE if successful; otherwise FALSE.
Remarks
See AlphaBlend in the Platform SDK for more information.
See Also
CDC Overview | Class Members | Hierarchy Chart | EMRALPHABLEND