MFC AlphaBlend 函数

MFC AlphaBlend 函数AlphaBlendPa 参数 ReturnValues 返回值 Remarks 备注 TheAlphaBlen AlphaBlend 函数显示拥有透明或半透明像素点的位图 BOOLAlphaBle HDChdcDest handletodest 目标 DC 的

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.
【源和目标混合函数当前限制为AC_SRC_OVER。请参见BLENDFUNCTION和EMRALPHABLEND结构。】








Return Values(返回值)

ValueMeaning
ERROR_INVALID_PARAMETER (宏值为87)One or more of the input parameters is invalid.

Remarks(备注)

心得体会




版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/215142.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月18日 下午2:36
下一篇 2026年3月18日 下午2:36


相关推荐

  • ActionContext_session和page view

    ActionContext_session和page view在Struts2.0中,Action已经与Servlet API完全分离,这使得Struts2.0的Action具有了更加灵活和低耦合的特性,与Struts1.0相比较而言是个巨大的进步。虽然Struts2.0的Action已经与Servlet API完全分离,但我们在实现业务逻辑处理时经常需要访问Servlet中的对象,如Session、Application等。Struts2.0 提供了一个名

    2025年10月12日
    5
  • BZOJ 1212 HNOI2004 L语言 AC自己主动机(Trie树)+动态规划

    BZOJ 1212 HNOI2004 L语言 AC自己主动机(Trie树)+动态规划

    2022年1月8日
    42
  • 图片标注工具LabelImg使用教程[通俗易懂]

    图片标注工具LabelImg使用教程[通俗易懂]前言我们知道,图片标注主要是用来创建自己的数据集,方便进行深度学习训练。本篇博客将推荐一款十分好用的图片标注工具LabelImg,重点介绍其安装以及使用的过程。在此感谢原作者在github所做的贡献,这款工具是全图形界面,用Python和Qt写的,最牛的是其标注信息可以直接转化成为XML文件,与PASCALVOC以及ImageNet用的XML是一样的。Ubuntu源码安装由于Ubuntu系统自带p

    2022年6月29日
    107
  • 具有指令流水线结构的cpu_cpu流水线技术

    具有指令流水线结构的cpu_cpu流水线技术为什么小小一个CPU,有那么多周期(Cycle)?程序的性能,是由三个因素相乘来衡量的,“指令数×CPI×时钟周期”。和周期相关的只有一个时钟周期,即CPU主频的倒数。一个CPU的时钟周期可以认为是可以完成一条最简单的计算机指令的时间。那为何构造CPU时,有那么多周期?单指令周期处理器一条CPU指令的执行,由FDE三步组成。这个执行过程,至少需花费一个时钟周期。因为在取指令的时候,我们需要通过时钟周期的信号,来决定计数器的自增。很自然,我们希望能确保让这样一整条指令的执行,在一个时钟周期内完成

    2022年8月20日
    12
  • 应该是最好的eggnog-mapper功能注释教程

    应该是最好的eggnog-mapper功能注释教程eggnog mapper 实现功能注释 eggNOG Mapper 介绍通常功能注释的思路都是基于序列相似性找直系同源基因 常见的方法就是 BLAST BLAST2GO 或者是 InterProScan eggNOG mapper 的作者认为这种方法不够可靠 毕竟你有可能找到的的是旁系同源基因 近期对多个工具的整体评估发现 eggNOG evolutionar

    2026年3月18日
    3
  • 未来计算机技术的发展趋势有哪些,浅谈计算机技术的发展趋势

    未来计算机技术的发展趋势有哪些,浅谈计算机技术的发展趋势摘要 二十一世纪一个信息化的时代 以计算机技术为代表的信息技术已经逐步渗透到社会的各个领域 而且正在改变着人们的生产与生活甚至是学习 计算机的应用技术不仅是自身在飞速发展 而且已贯穿到许多其他学科 现在的各个科学领域的发展都得益于计算机技术的应用 本文主要从计算机技术涵义入手 探讨一些新型的计算机技术及计算机发展趋势 关键词 计算机技术发展趋势中图分类号 G633 58 一 前言当前计算机技术获得

    2026年3月17日
    1

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号