AlphaBlend
The AlphaBlend function displays bitmaps that have transparent or semitransparent pixels.
【AlphaBlend函数显示拥有透明或半透明像素点的位图。】
Syntax(语法)
BOOL AlphaBlend( HDC hdcDest, // handle to destination DC(目标DC的句柄) int nXOriginDest, // x-coord of upper-left corner(目标起点左上角X坐标) int nYOriginDest, // y-coord of upper-left corner(目标起点左上角Y坐标) int nWidthDest, // destination width(目标宽) int nHeightDest, // destination height(目标高) HDC hdcSrc, // handle to source DC(源DC的句柄) int nXOriginSrc, // x-coord of upper-left corner(源起点左上角X坐标) int nYOriginSrc, // y-coord of upper-left corner(源起点左上角Y坐标) int nWidthSrc, // source width(源宽) int nHeightSrc, // source height(源高) BLENDFUNCTION blendFunction // alpha-blending function(α混合函数) );
Parameter(参数)
| hdcDest | [in] Handle to the destination device context. 【目标设备上下文的句柄】 |
| nXOriginDest | [in] Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle. 【以逻辑单位指定目标矩形左上角的x坐标。】 |
| nYOriginDest | [in] Specifies the y-coordinate, in logical units, of the upper-left corner of the destination rectangle. 【以逻辑单位指定目标矩形左上角的y坐标。】 |
| nWidthDest | [in] Specifies the width, in logical units, of the destination rectangle. 【以逻辑单位指定目标矩形的宽度。】 |
| nHeightDest | [in] Specifies the height, in logical units, of the destination rectangle. 【以逻辑单位指定目标矩形的高度。】 |
| hdcSrc | [in] Handle to the source device context. 【源设备上下文的句柄】 |
| nXOriginSrc | [in] Specifies the x-coordinate, in logical units, of the upper-left corner of the source rectangle. 【以逻辑单位指定源矩形左上角的x坐标。】 |
| nYOriginSrc | [in] Specifies the y-coordinate, in logical units, of the upper-left corner of the source rectangle. 【以逻辑单位指定源矩形左上角的y坐标。 】 |
| nWidthSrc | [in] Specifies the width, in logical units, of the source rectangle. 【以逻辑单位指定目标矩形的宽度。】 |
| nHeightSrc | [in] Specifies the height, in logical units, of the source rectangle. 【以逻辑单位指定目标矩形的高度。】 |
| blendFunction | [in] Specifies the alpha-blending function for source and destination bitmaps, a global alpha value to be applied to the entire source bitmap, and format information for the source bitmap. 【指定源位图和目标位图的alpha混合函数、应用于整个源位图的全局alpha值以及源位图的格式信息。】 The source and destination blend functions are currently limited to AC_SRC_OVER. See the BLENDFUNCTION and EMRALPHABLEND structures. |
Return Values(返回值)
| Value | Meaning |
|---|---|
| ERROR_INVALID_PARAMETER (宏值为87) | One or more of the input parameters is invalid. |
Remarks(备注)
心得体会
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/215142.html原文链接:https://javaforall.net
