金
金少
Unregistered / Unconfirmed
GUEST, unregistred user!
有谁能给我详细讲讲以下的API函数吗?
int StretchDIBits(
HDC hdc, // handle of device context
int XDest, // x-coordinate of upper-left corner of dest. rect.
int YDest, // y-coordinate of upper-left corner of dest. rect.
int nDestWidth, // width of destination rectangle
int nDestHeight, // height of destination rectangle
int XSrc, // x-coordinate of upper-left corner of source rect.
int YSrc, // y-coordinate of upper-left corner of source rect.
int nSrcWidth, // width of source rectangle
int nSrcHeight, // height of source rectangle
CONST VOID *lpBits, // address of bitmap bits
CONST BITMAPINFO *lpBitsInfo, // address of bitmap data
UINT iUsage, // usage
DWORD dwRop // raster operation code
);
特别是 CONST VOID *lpBits, // address of bitmap bits
CONST BITMAPINFO *lpBitsInfo, // address of bitmap data
如果我分别将*lpBits定义为lpstr类型的指针, 将*lpBitsInfo定义为PBITMAPINFOHEADER;
如果我将两副图写入lpstr, (我不知怎样描述, 希望你能明白)
现在我想在调用StretchDIBits前, 让这两个lpstr类型的数据想减,
再调用StretchDIBits! 目的是实现这两副图的数据相减!
或对lpstr熟悉的朋友, 请多多指教, tks!
int StretchDIBits(
HDC hdc, // handle of device context
int XDest, // x-coordinate of upper-left corner of dest. rect.
int YDest, // y-coordinate of upper-left corner of dest. rect.
int nDestWidth, // width of destination rectangle
int nDestHeight, // height of destination rectangle
int XSrc, // x-coordinate of upper-left corner of source rect.
int YSrc, // y-coordinate of upper-left corner of source rect.
int nSrcWidth, // width of source rectangle
int nSrcHeight, // height of source rectangle
CONST VOID *lpBits, // address of bitmap bits
CONST BITMAPINFO *lpBitsInfo, // address of bitmap data
UINT iUsage, // usage
DWORD dwRop // raster operation code
);
特别是 CONST VOID *lpBits, // address of bitmap bits
CONST BITMAPINFO *lpBitsInfo, // address of bitmap data
如果我分别将*lpBits定义为lpstr类型的指针, 将*lpBitsInfo定义为PBITMAPINFOHEADER;
如果我将两副图写入lpstr, (我不知怎样描述, 希望你能明白)
现在我想在调用StretchDIBits前, 让这两个lpstr类型的数据想减,
再调用StretchDIBits! 目的是实现这两副图的数据相减!
或对lpstr熟悉的朋友, 请多多指教, tks!