Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

CDC::AlphaBlend

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  
);
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.

TRUE if successful; otherwise FALSE.

See AlphaBlend in the Windows SDK for more information.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.