bitblt函数_统计参数的含义

bitblt函数_统计参数的含义【转载请注明出处: http://blog.csdn.net/lzl124631x】接口BOOLBitBlt( _In_ HDChdcDest, _In_ intnXDest, _In_ intnYDest, _In_ intnWidth, _In_ intnHeight, _In_ HDChdcSrc, _I

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

【转载请注明出处: http://blog.csdn.net/lzl124631x


接口

BOOL BitBlt(

  _In_  HDC hdcDest,

  _In_  int nXDest,

  _In_  int nYDest,

  _In_  int nWidth,

  _In_  int nHeight,

  _In_  HDC hdcSrc,

  _In_  int nXSrc,

  _In_  int nYSrc,

  _In_  DWORD dwRop

);


坐标、大小参数的含义

图片大小550×342

当nWidth和nHeight大于原图片大小时,图片正常输出。

BitBlt(hdc,0,0,1000,1000,buf_hdc,0,0,SRCCOPY);

bitblt函数_统计参数的含义

当某一维小于图片尺寸的时候,图片被剪裁

BitBlt(hdc,0,0,1000,180,buf_hdc,0,0,SRCCOPY);

bitblt函数_统计参数的含义

nXSrc和nYSrc决定了从源HDC的哪个点开始截取图

BitBlt(hdc,0,0,550,342,buf_hdc,100,100,SRCCOPY);

bitblt函数_统计参数的含义

当nXSrc和nYSrc为负数的时候

BitBlt(hdc,0,0,550,342,buf_hdc,-100,-100,SRCCOPY);

bitblt函数_统计参数的含义

nXDest和nYDest决定了从目标HDC的哪个点开始贴图

BitBlt(hdc,100,100,550,342,buf_hdc,0,0,SRCCOPY);


bitblt函数_统计参数的含义


参数dwRop的含义

background: 640×400

foreground: 519×292

BLACKNESS: Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)

bitblt函数_统计参数的含义

CAPTUREBLT: Includes any windows that are layered on top of your window in the resulting image. By default, the image only contains your window. Note that this generally cannot be used for printing device contexts.

bitblt函数_统计参数的含义

DSTINVERT: Inverts the destination rectangle.

bitblt函数_统计参数的含义

MERGECOPY: Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.

bitblt函数_统计参数的含义

MERGEPAINT: Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.

bitblt函数_统计参数的含义

NOMIRRORBITMAP: Prevents the bitmap from being mirrored.

bitblt函数_统计参数的含义

NOTSRCCOPY: Copies the inverted source rectangle to the destination.

bitblt函数_统计参数的含义

NOTSRCERASE: Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.

bitblt函数_统计参数的含义

PATCOPY: Copies the brush currently selected in hdcDest, into the destination bitmap.

bitblt函数_统计参数的含义

PATINVERT: Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.

bitblt函数_统计参数的含义

PATPAINT: Copies the brush currently selected in hdcDest, into the destination bitmap.

bitblt函数_统计参数的含义

SRCAND: Combines the colors of the source and destination rectangles by using the Boolean AND operator.

bitblt函数_统计参数的含义

SRCCOPY: Copies the source rectangle directly to the destination rectangle.

bitblt函数_统计参数的含义

SRCERASE: Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.

bitblt函数_统计参数的含义

SRCINVERT: Combines the colors of the source and destination rectangles by using the Boolean XOR operator.

bitblt函数_统计参数的含义

SRCPAINT: Combines the colors of the source and destination rectangles by using the Boolean OR operator.

bitblt函数_统计参数的含义

WHITENESS: Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)

bitblt函数_统计参数的含义

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

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

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 如何用jmeter做性能测试并分析测试结果(jmeter负载测试步骤)

    Jmeter是一款轻量型的优秀测试软件产品,在很多场合如个人测试,企业测试中都有广泛应用。相比体积巨大的Lr我们在某些场合可能更倾向于对Jmeter的使用,那么我们要如何利用该软件进行性能测试呢?首先我们需要下载安装这款全免费的测试软件Jmeter,下载地址如下:http://jmeter.apache.org/download_jmeter.cgi按图中操作,下载好压缩包,解压安装即可

    2022年4月16日
    38
  • word-embedding_open compound word

    word-embedding_open compound wordWordEmbedding之CBOWCBOW模型结构准备文字数字化构建损失函数基于RNN的方法基于CBOW的方法CBOWCBOW是一个非常优秀的WordEmbedding模型,其原理非常简单,本文章尝试深入模型内部,探索这个模型的性能和表现。模型结构准备再介绍模型的网络结构之前,首先要介绍的是一个向量计算。假定特征为,x=(x0,x1,⋯ ,xn−1…

    2025年9月4日
    3
  • awr报告 解读_且听AWR之父解读AWR报告

    awr报告 解读_且听AWR之父解读AWR报告原标题 且听 AWR 之父解读 AWR 报告 AWR 报告是数据库性能评估和优化的重要参考 将数据库的问题已量化的形式展现出来 给 DBA 带来了很多便利 然而 AWR 中的内容是非常多的 如何才能以最佳的方式解读 AWR 报告 最高效地找出数据库的性能问题所在呢 在刚刚过去的 OOW2017 大会上 AWR 之父 Graham 做了一个主题分享 名为 AWRAnalysisf Developersan

    2025年9月5日
    6
  • js获取当前时间年份_js输入年月日,判断是这年的第几天

    js获取当前时间年份_js输入年月日,判断是这年的第几天vardate=newDate();date.getYear();//获取当前年份(2位)date.getFullYear();//获取完整的年份(4位)date.getMonth();//获取当前月份(0-11,0代表1月)date.getDate();//获取当前日(1-31)date.getDay();//获取当前星期X(0-6,0代表星期天)date.getTime();//获取当前时间(从1970.1.1开始的毫秒数)date.getH

    2025年7月2日
    2
  • vscode 配置C语言编译环境(完美版)_C语言环境安装

    vscode 配置C语言编译环境(完美版)_C语言环境安装基本步骤要在VSCode中配置C语言环境,我们首先可能要一个VSCode(废话),所以先下载安装一个VSCode;然后肯定需要相关插件,因为VSCode不能直接拿来写C;然后任何语言的程序在运行前都需要编译,那还需要一个编译器,很可惜VSCode插件里面不自带,所以要自己下载然后配置;最后在VSCode中进行相关配置,就可以下载并安装VSCodevscode下载地址安装相关插件打卡后进入如下界面,选择这个C/C++的,然后点击install进行安装,大概几秒钟就好了,安装完成后in

    2022年9月16日
    2
  • 医学图像处理最全综述「建议收藏」

    目录0、引言1、病变检测2、图像分割基于深度学习的医学图像分割与检测3、图像配准图像配准的定义4、图像融合5、预测与挑战6、结论参考文献0、引言医学图像处理的对象是各种不同成像机理的医学影像,临床广泛使用的医学成像种类主要有X-射线成像(X-CT)、核磁共振成像(MRI)、核医学成像(NMI)、超声波成像(UI)四类。在目前的影像医疗诊断中,主要是通过观察一组二维切片图象去发现病变体,这往往需要借助医生的经验来判定。利用计算机图像处理技术对二维切片图象进行.

    2022年4月7日
    200

发表回复

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

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