Overview Members Chapter Previous Next

## CDXSurface::CDXBLT_Fade

HRESULT CDXBLT_Fade( | CDXSurface* dest , LONG lDestX , LONG lDestY , RECT srcRect , WORD ALPHA ) ;

NAME: CDXBLT_Fade.

PURPOSE: Fades all or a portion of the source surface to a destination surface. The fade amount is controlled by the ALPHA value.

     INPUT: dest    - a CDXSurface pointer that is the destination surface
           lDestX  - The left hand X location on the destination surface where
                     you want the blt to begin.
           lDestY  - the top Y location on the destination surface where
                     you want the blt to begin.
           srcRect - RECT structure that defines what you want blitted
           ALPHA   - Alpha blending value between 0-256

                     256 --> no fade, pure src image is displayed
                     0   --> pure black, no src image

RETURNS: An HRESULT either a DirectX error or DDERR_GENERIC.