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


相关推荐

  • django自定义用户认证_为什么需要自定义类加载器

    django自定义用户认证_为什么需要自定义类加载器前言如果我们不用使用drf那套认证规则,我们想自定义认证类,那么我们首先要知道,drf本身是如何定义认证规则的,也就是要查看它的源码是如何写的源码分析源码的入口在APIView.py文件下的di

    2022年8月7日
    5
  • 通过reduce函数实现数组求和_js数组求和的方法

    通过reduce函数实现数组求和_js数组求和的方法对于实现数组求和,我们常用的思路是通过for、while,对数组进行迭代,依次将他们的值加起来,下面列举常用的两种方法第一种:vararr=[1,2,3,4,5,6];Array.prototype.sum=function(){varsumResult=0;for(vari=0;i<this.lengt…

    2022年10月2日
    1
  • 理解几种常见的进程间通信方式

    理解几种常见的进程间通信方式什么是进程间通信广义上讲,进程间通信(Inter-ProcessCommunication,IPC)是指运行在不同进程(不论是否在同一台机器)中的若干线程间的数据交换。从上面的定义可以得出两点:参与通信的进程即可以运行在同一台机器上,也可以运行在各自的设备环境中(RemoteProcedureCallProtocol,RPC)。如果进程是跨机器运行的,则通常是由网络连接在一起。实现方

    2022年10月9日
    0
  • 神经网络学习–用卷积神经网络进行图像识别「建议收藏」

    神经网络学习–用卷积神经网络进行图像识别「建议收藏」卷积神经网络特别适合处理像图片、视频、音频、语言文字等,这些与相互位置有一定关系的数据。卷积神经网络(ConvolutionalNerualNetwork,CNN)为什么计算机可以处理图片–因为在计算机语言中图片可以用数字化,用四维数组来表示既然卷积神经网络可以处理图片,那么我们就要理解图片在计算机语言中是如何表达的。图片其实是“点阵”图,由一个个点按照一定的顺序组合而成,那我们就可以联想到一个概念–数组。图片可以分为三类:纯黑白图片、灰度图片、彩色图片关于图片数字化,以最.

    2022年6月1日
    39
  • 基于android的_android studio创建activity

    基于android的_android studio创建activityAndroid如何判断一个应用在运行 在一个应用中,或一个Service、Receiver中判断一个应用是否正在运行,以便进行一些相关的处理。这个时候我们需要得到一个ActivityManager,这个Manager顾名思意就是管理Activity的,它有一个方法叫getRunningTasks,可以得到当前系统正在运行的Task的列表,代码如下:  A

    2022年9月6日
    6
  • Response.AddHeader「建议收藏」

    Response.AddHeader「建议收藏」Response.AddHeader

    2022年7月1日
    25

发表回复

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

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