IDirectDrawSurface2::UpdateOverlay
HRESULT UpdateOverlay(LPRECT lpSrcRect,
LPDIRECTDRAWSURFACE2 lpDDDestSurface,
LPRECT lpDestRect, DWORD dwFlags,
LPDDOVERLAYFX lpDDOverlayFx);
Repositions or modifies the visual attributes of an overlay surface. These surfaces must have the DDSCAPS_OVERLAY value set.
·Returns DD_OK if successful, or one of the following error values otherwise:
lpSrcRect
Address of a RECT structure that defines the x, y, width, and height of the region on the source surface being used as the overlay.
lpDDDestSurface
Address of the DirectDraw surface that is being overlaid.
lpDestRect
Address of a RECT structure that defines the x, y, width, and height of the region on the destination surface that the overlay should be moved to.
dwFlags
Adds a dirty rectangle to an emulated overlaid surface.
Uses either the alpha information in pixel format or the alpha channel surface attached to the destination surface as the alpha channel for this overlay.
Uses the dwAlphaDestConst member of the DDOVERLAYFX structure as the destination alpha channel for this overlay.
Indicates that the destination surface becomes more transparent as the alpha value increases (0 is opaque).
DDOVER_ALPHADESTSURFACEOVERRIDE
Uses the lpDDSAlphaDest member of the DDOVERLAYFX structure as the alpha channel destination for this overlay.
Uses the dwAlphaEdgeBlend member of the DDOVERLAYFX structure as the alpha channel for the edges of the image that border the color key colors.
Uses either the alpha information in pixel format or the alpha channel surface attached to the source surface as the source alpha channel for this overlay.
Uses the dwAlphaSrcConst member of the DDOVERLAYFX structure as the source alpha channel for this overlay.
Indicates that the source surface becomes more transparent as the alpha value increases (0 is opaque).
DDOVER_ALPHASRCSURFACEOVERRIDE
Uses the lpDDSAlphaSrc member of the DDOVERLAYFX structure as the alpha channel source for this overlay.
Uses the overlay FX flags to define special overlay effects.
Turns this overlay off.
Uses the color key associated with the destination surface.
Uses the dckDestColorkey member of the DDOVERLAYFX structure as the color key for the destination surface.
Uses the color key associated with the source surface.
Uses the dckSrcColorkey member of the DDOVERLAYFX structure as the color key for the source surface.
Turns this overlay on.
Uses the dwZOrderFlags member of the DDOVERLAYFX structure as the z-order for the display of this overlay. The lpDDSRelative member is used if the dwZOrderFlags member is set to either DDOVERZ_INSERTINBACKOF or DDOVERZ_INSERTINFRONTOF.
lpDDOverlayFx
See the DDOVERLAYFX structure.