StretchBlt在内存中拉伸或压缩源位图,然后将结果复制到目标矩形。 此位图可以是兼容位图 (DDB) ,也可以是CreateDIBSection的输出。 在拉伸或压缩发生后,将合并图案或目标像素的颜色数据。 记录增强型图元文件时, (发生错误,如果源设备上下文标识增强型图元文件设备上下文,则函数返回FALSE) 。
StretchBlt函数将位图从源矩形复制到目标矩形,并在必要时拉伸或压缩位图以适应目标矩形的尺寸。 系统根据当前在目标设备上下文中设置的拉伸模式拉伸或压缩位图。 语法 C++复制 BOOLStretchBlt( [in] HDC hdcDest, [in]intxDest, [in]intyDest, [in]intwDest, [in]inthDest, [in] HDC hdcSrc, [in]intxSrc...
StretchBlt 函数将位图从源矩形复制到目标矩形,并在必要时拉伸或压缩位图以适应目标矩形的尺寸。 系统根据当前在目标设备上下文中设置的拉伸模式拉伸或压缩位图。语法C++ 复制 BOOL StretchBlt( [in] HDC hdcDest, [in] int xDest, [in] int yDest, [in] int wDest, [in] int hDest, [in] HDC hdcSrc...
Syntax Parameters Return Value Remarks 2 weitere anzeigen A version of this page is also available for Windows Embedded CE 6.0 R3 4/8/2010 This function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the desti...
BOOL StretchBlt( HDC hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, DWORD dwRop ); ParametershdcDest [in] Handle to the destination device context.nX...
BOOL StretchBlt( HDC hdcDest, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, DWORD dwRop ); ParametershdcDest [in] Handle to the destination device context.nX...
HALFTONE模式比其他三种模式需要对源图像进行更多的处理,也比其他模式慢,但它能产生高质量图像,也应注意在设置HALFTONE模式之后,应调用SetBrushOrgEx函数以避免出现刷子没对准现象。 根据设备驱动程序的功能不同,其他一些拉伸模式也可能有效。 参考: 互动百科:StretchBltSetStretchBltMode MSDN:StretchBltSetStretchBltMode...
事实上解决这个问题的正确方式是在 StretchBlt 之前调用 SetStretchBltMode 函数设置模式,下文中采用的方法实际上是 COLORONCOLOR 模式(即删除像素),这种模式将完全舍弃那些产生重叠的行列信息。下面解释一下这些模式:(内容来自 MSDN) BLACKONWHITE 在保留像素和损失像素之间执行逻辑与(AND)操作。如果图片是单色位图,则...
事实上解决这个问题的正确方式是在 StretchBlt 之前调用 SetStretchBltMode 函数设置模式,下文中采用的方法实际上是 COLORONCOLOR 模式(即删除像素),这种模式将完全舍弃那些产生重叠的行列信息。下面解释一下这些模式:(内容来自 MSDN) BLACKONWHITE 在保留像素和损失像素之间执行逻辑与(AND)操作。如果图片是单色位图,则...
int nSrcHeight, //指定源矩形区域的高度 DWORD dwRop //此参数参考MSDN,SRCCOPY类型为直接拷贝 ); //此函数将一个位图资源从一个矩形区域拷贝到另一个矩形区域,即缩放位图 BOOL TransparentBlt( int xDest, int yDest, int nDestWidth, int nDestHeight, ...