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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 淘宝最新钓鱼网站源码及教程_挖鱼源码网

    淘宝最新钓鱼网站源码及教程_挖鱼源码网大家好,我是陈文生,今天教大家一下如何搭建一个精仿QQ空间的钓鱼网站(PHP)有什么不会直接联系我(QQ:2771628927)先看一下效果文生QQ:2771628927我们看一下后台文生QQ:2771628927活不多说了,直接源码吧…

    2022年8月24日
    13
  • .npy文件_文件后缀名是npy怎么打开

    .npy文件_文件后缀名是npy怎么打开深度学习–迁移学习在使用训练好的模型时,其中有一种保存的模型文件格式叫.npy。打开方式·实现代码:importnumpyasnptest=np.load(‘./bvlc_alexnet.npy’,encoding=”latin1″)#加载文件doc=open(‘1.txt’,’a’)#打开一个存储文件,并依次写入print(test,file=doc)#…

    2025年8月21日
    5
  • 【html】【一个简单的用户登录页面代码】

    【html】【一个简单的用户登录页面代码】结果代码<!DOCTYPEhtml><html><head><title>用户登录.html</title> <metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><met

    2022年6月12日
    34
  • softmax、softmax损失函数、cross-entropy损失函数[通俗易懂]

    softmax、softmax损失函数、cross-entropy损失函数[通俗易懂]softmaxsoftmax,顾名思义,就是soft版本的max。在了解softmax之前,先看看什么是hardmax。hardmax就是直接选出一个最大值,例如[1,2,3]的hardmax就是3,而且只选出最大值,非黑即白,但是实际中这种方式往往是不合理的,例如对于文本分类来说,一篇文章或多或少包含着各种主题信息,我们更期望得到文章属于各种主题的概率值,而不是简单直接地归类为某一种唯一的主题。这里就需要用到soft的概念,即不再唯一地确定某一个最大值,而是为每个输出分类

    2022年6月26日
    34
  • java将字符串分段输出_java输入字符串并将每个字符输出的方法[通俗易懂]

    java将字符串分段输出_java输入字符串并将每个字符输出的方法[通俗易懂]java输入字符串并将每个字符输出的方法如下所示:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){inti,len;Stringstr;Scannerin=newScanner(System.in);str=in.next();len=str.length();…

    2022年10月17日
    4
  • quota什么意思(binding quota)

    什么是quotaquota的用途quota的一般作用对象quota的限制quota的使用重新挂devsdb1文件系统并添加usrquotagrpquota参数添加用户组和用户生成quota配置文件启动quota功能修改quota配置文件配置文件内容如下修改权限再写入一个大文件切换quota2用户修改警告时间查看quota1的quota信息查询quota2的quota信息

    2022年4月12日
    61

发表回复

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

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