CImage::StretchBlt
将源设备上下文的位图到此当前设备上下文。
BOOL StretchBlt(
HDC hDestDC,
int xDest,
int yDest,
int nDestWidth,
int nDestHeight,
DWORD dwROP = SRCCOPY
) const throw( );
BOOL StretchBlt(
HDC hDestDC,
const RECT& rectDest,
DWORD dwROP = SRCCOPY
) const throw( );
BOOL StretchBlt(
HDC hDestDC,
int xDest,
int yDest,
int nDestWidth,
int nDestHeight,
int xSrc,
int ySrc,
int nSrcWidth,
int nSrcHeight,
DWORD dwROP = SRCCOPY
) const throw( );
BOOL StretchBlt(
HDC hDestDC,
const RECT& rectDest,
const RECT& rectSrc,
DWORD dwROP = SRCCOPY
) const throw( );
参数
hDestDC
对目标设备上下文的句柄。xDest
x坐标,在逻辑单位,目标矩形的左上角。yDest
y坐标,在逻辑单位,目标矩形的左上角。nDestWidth
宽度,在逻辑单位,目标矩形。nDestHeight
高度,在逻辑单位,目标矩形。dwROP
要执行的光栅操作。 光栅操作代码正确地定义如何合并源代码、目标和模式的位(所定义的当前选定的画笔)以形成目标。 对于其他光栅操作代码及其说明的列表参见。Windows SDK 的 BitBlt。rectDest
为 RECT 结构的引用,标识目标。xSrc
x坐标,在逻辑单位,源矩形的左上角。ySrc
y坐标,在逻辑单位,源矩形的左上角。nSrcWidth
宽度,在逻辑单位,源矩形。nSrcHeight
高度,在逻辑单位,源矩形。rectSrc
为 RECT 结构的引用,标识源。
返回值
非零,如果成功;否则为0。
备注
有关更多信息,请参见 Windows SDK的 StretchBlt。
要求
Header: atlimage.h