网站首页  词典首页

请输入您要查询的函数:

 

术语 transparentblt
释义 TransparentBlt
语法:
BOOL TransparentBlt(
__in HDC hdcDest,
__in int xoriginDest,
__in int yoriginDest,
__in int wDest,
__in int hDest,
__in HDC hdcSrc,
__in int xoriginSrc,
__in int yoriginSrc,
__in int wSrc,
__in int hSrc,
__in UINT crTransparent
);
TransparentBlt函数
该TransparentBlt函数执行到目标设备上下文位块的颜色从指定的数据源设备上下文对应的像素矩形转移。
参数
hdcDest [in]
句柄到目标设备上下文。
xoriginDest [in]
的x坐标,按逻辑单位,对目标矩形左上角。
yoriginDest [in]
在y坐标,按逻辑单位,对目标矩形左上角。
wDest [in]
宽度,按逻辑单位,目标矩形。
hDest [in]
句柄的高度,按逻辑单位,目标矩形。
hdcSrc [in]
句柄到源设备上下文。
xoriginSrc [in]
的x坐标,按逻辑单位,源矩形。
yoriginSrc [in]
在y坐标,按逻辑单位,源矩形。
wSrc [in]
宽度,按逻辑单位,源矩形。
钢骨高强混凝土 [in]
的高度,以逻辑单位,源矩形。
crTransparent [in]
在源位RGB颜色当作透明。
返回值
如果函数成功,返回值为TRUE。
如果函数失败,返回值为FALSE。
备注
与(分布式数据库系统)兼容位图TransparentBlt函数工作。
该TransparentBlt功能支持所有的源位图格式。然而,对于32色位图,它只是复制alpha值了。使用AlphaBlend指定的透明度32位每像素位图。
如果源和目标矩形不一样大小,源位图被拉伸以匹配目标矩形。当SetStretchBltMode函数使用的BLACKONWHITE的iStretchMode模式和WHITEONBLACK转换为COLORONCOLOR的TransparentBlt功能。
目标设备上下文指定的目的地坐标转换的类型。源设备上下文指定为源转型的坐标。
TransparentBlt未能反映如果任何一个位图的宽度或高度,无论是源或目标,是否定的。
当用在多个监控系统,无论hdcSrc和hdcDest必须引用相同的设备或功能将失败。要为不同的设备转移,转换通过调用GetDIBits内存的DIB位图数据之间的区议会。要显示DIB的第二个设备,电话SetDIBits或StretchDIBits函数。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinGdi.h(头文件:winuser.h)
LibraryMsimg32.lib
DLLMsimg32.dll
参见
位图概述
位图功能
AlphaBlend
GetDIBits
SetDIBits
SetStretchBltMode
StretchDIBits函数
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==TransparentBlt Function
The TransparentBlt function performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source device context into a destination device context.
Syntax
BOOL TransparentBlt(
__in HDC hdcDest,
__in int xoriginDest,
__in int yoriginDest,
__in int wDest,
__in int hDest,
__in HDC hdcSrc,
__in int xoriginSrc,
__in int yoriginSrc,
__in int wSrc,
__in int hSrc,
__in UINT crTransparent
);
Parameters
hdcDest [in]
A handle to the destination device context.
xoriginDest [in]
The x-coordinate, in logical units, of the upper-left corner of the destination rectangle.
yoriginDest [in]
The y-coordinate, in logical units, of the upper-left corner of the destination rectangle.
wDest [in]
The width, in logical units, of the destination rectangle.
hDest [in]
A handle to the height, in logical units, of the destination rectangle.
hdcSrc [in]
A handle to the source device context.
xoriginSrc [in]
The x-coordinate, in logical units, of the source rectangle.
yoriginSrc [in]
The y-coordinate, in logical units, of the source rectangle.
wSrc [in]
The width, in logical units, of the source rectangle.
hSrc [in]
The height, in logical units, of the source rectangle.
crTransparent [in]
The RGB color in the source bitmap to treat as transparent.
Return Value
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
Remarks
The TransparentBlt function works with compatible bitmaps (DDBs).
The TransparentBlt function supports all formats of source bitmaps. However, for 32 bpp bitmaps, it just copies the alpha value over. Use AlphaBlend to specify 32 bits-per-pixel bitmaps with transparency.
If the source and destination rectangles are not the same size, the source bitmap is stretched to match the destination rectangle. When the SetStretchBltMode function is used, the iStretchMode modes of BLACKONWHITE and WHITEONBLACK are converted to COLORONCOLOR for the TransparentBlt function.
The destination device context specifies the transformation type for the destination coordinates. The source device context specifies the transformation type for the source coordinates.
TransparentBlt does not mirror a bitmap if either the width or height, of either the source or destination, is negative.
When used in a multiple monitor system, both hdcSrc and hdcDest must refer to the same device or the function will fail. To transfer data between DCs for different devices, convert the memory bitmap to a DIB by calling GetDIBits . To display the DIB to the second device, call SetDIBits or StretchDIBits .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinGdi.h (include Windows.h)
LibraryMsimg32.lib
DLLMsimg32.dll
See Also
Bitmaps Overview
Bitmap Functions
AlphaBlend
GetDIBits
SetDIBits
SetStretchBltMode
StretchDIBits
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145141(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:25:02