DDirectBlt | 45
Return value
DWORD –
zero (0) if function completed successfully;
otherwise, operating system error code.
Example This example transfers image data from the host to
the screen.
#include <mdpcint.h>
{
HDC
hdc;
int
DestX, DestY, SrcX, SrcY, Width, Height,
SrcStride;
void
*lpSrc
DWORD
dwRetCode;
.
.
.
dwRetCode = DDirectBlt (hdc, DestX, DestY, SrcX,
SrcY, Width, Height, SrcStride, lpSrc);
return dwRetCode;
}
When you use
DDirectBlt
, make sure that the values of
SrcX + Width
and
SrcY + Height
do not exceed the
bounds of the source image. Otherwise, you risk a system
memory access error.
Содержание Dome DX/PCI
Страница 6: ......