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


相关推荐

  • getelementbyid属性与用法[通俗易懂]

    getelementbyid属性与用法[通俗易懂]语法:oElement=document.getElementById(sID)参数:sID――必选项。字符串 (String) 。返回值:oElemen――对象 (Element) 。说明:根据指定的 id 属性值得到对象。返回 id 属性值等于 sID 的第一个对象的引用。假如对应的为一组对象,则返回该组对象中的第一个。 如果无符合条件的对象,则返回 nul

    2022年7月15日
  • vbnet程序设计教程_vb程序设计入门教程

    vbnet程序设计教程_vb程序设计入门教程链接:https://pan.baidu.com/s/1NzPq4rdwhJEDeHhDDl6wIQ提取码:3nz3复制这段内容后打开百度网盘手机App,操作更方便哦微信扫一扫即可获取文件

    2022年9月28日
  • JavaScript——二叉树层序遍历

    JavaScript——二叉树层序遍历题目描述给你一个二叉树,请你返回其按层序遍历得到的节点值。(即逐层地,从左到右访问所有节点)。示例二叉树:[3,9,20,null,null,15,7], 3/\920/\157返回其层序遍历结果:[[3],[9,20],[15,7]]递归实现代码varlevelOrder=function(root){if(root===null)return[]l

    2022年5月21日
  • 零基础学Java(5)输入与输出

    零基础学Java(5)输入与输出输入与输出读取输入要想通过控制台进行输入,首先需要构造一个与"标准输入流"System.in关联的Scanner对象。//创建输入流对象Scannerin=new

    2022年8月7日
  • Linux基础命令—shutdown

    Linux基础命令—shutdown

    2021年6月15日
  • SwipeRefreshLayout实现上滑加载更多[通俗易懂]

    SwipeRefreshLayout实现上滑加载更多[通俗易懂]SwipeRefreshLayout实现上滑加载更多在我们的项目中,需要用到许多下拉刷新和上滑加载的操作,不说什么没用的,直接来介绍SwipeRefreshLayout的扩展用法。后面会简单的介绍SwipeRefreshLayout的用法。在这里我们对谷歌官方的控件进行拓展,使得SwipeRefreshLayout具有上滑加载更多的功能。下面是正文首先我们新建文件(文件名自己定义,在…

    2022年6月25日

发表回复

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

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