BitBlt参数含义

BitBlt参数含义转载请注明出处 nbsp http blog csdn net lzlx 接口 BOOLBitBlt nbsp In nbsp HDChdcDest nbsp In nbsp intnXDest nbsp In nbsp intnYDest nbsp In nbsp intnWidth nbsp In nbsp intnHeight nbsp In nbsp HDChdcSrc nbsp I

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


接口

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/230526.html原文链接:https://javaforall.net

(0)
上一篇 2026年2月18日 上午8:01
下一篇 2026年2月18日 上午8:22


相关推荐

  • 讯飞星火怎么登录

    讯飞星火怎么登录

    2026年3月14日
    2
  • 经典C面试题

    经典C面试题

    2021年11月30日
    40
  • 服务器系统安装显卡驱动_dell服务器管理口安装系统

    服务器系统安装显卡驱动_dell服务器管理口安装系统第一步:1FrontUSB准备一个U盘作为CentOS-6.9-x86_64-bin-DVD1.iso的外接2准备一个CentOS-6.9-x86_64-bin-DVD1.iso镜像3下载UltraISO软碟通官方中文版网址:https://cn.ultraiso.net/xiazai.html4…

    2026年4月15日
    3
  • 进程控制块

    进程控制块进程控制模块查看进程 PCB 内部构成标识符 ppid 状态优先级查看优先级方式优先级确定原理调整优先级 nice 值范围程序计数器内存指针上下文数据时间片上下文数据 I O 状态信息记账信息查看进程信息进程 加载到内存的程序 就叫做进程 系统中会存在大量进程 操作系统要对进程进行管理 操作系统管理进程的方式 先描述再组织 因此任何进程在形成的时候 操作系统要为该进程创建 PCB 进程控制块 查看进程 psaxj head 1 amp amp psaxj grep test 该命令可以查看 g

    2026年3月19日
    3
  • Pycharm如何设置自动换行[通俗易懂]

    Pycharm如何设置自动换行[通俗易懂]代码编辑区自动换行对所有文件有效:(1)File->Settings->Editor->General;(2)找到SoftWraps,勾选Soft-wrapfiles;(3)在输入框中添加;*.py,如下图所示;

    2022年8月29日
    7
  • 什么时候市场出现真正拐点

    什么时候市场出现真正拐点 从《实盘日志》中披露的数据我们能够发现,目前股指已经被大资金牢牢掌握,话语权已经交给了大盘股,这一点从昨天的银行股群体上涨就能够看出问题。 《实盘日志》贴出的图表显示,昨天银行板块资金净流入就高达9个亿,但是,8日资金净流出较大的个股有紫金矿业、…

    2022年6月18日
    26

发表回复

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

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