双缓冲绘图实现图片查看格式转换器

上传者: qq721236042 | 上传时间: 2021-05-11 14:11:58 | 文件大小: 237KB | 文件类型: RAR
基于MFC单文档的图片查看格式转换器 功能描述: 1、支持BMP,JPG,GIF,PNG等多种格式相互转换(打开->另存为) 2、打开图片后鼠标滚轮可以放大缩小 3、支持鼠标左键拖动图片位置 4、尺寸超过客户区时可使用滚动条 特点:使用双缓冲绘图,实现缩放移动时界面内容不闪烁 实现过程: 1、创建MFC单文档程序 2、添加CMemDC.h文件(双缓冲绘图封装) 3、改造OnDraw(CDC* pDC)函数 4、在CPicZoomView类添加鼠标各类消息跟事件消息响应 PS:双缓冲绘图为两步:一是创建内存DC,二是重写OnEraseBkgnd(CDC* pDC)函数。

文件下载

资源详情

[{"title":"( 26 个子文件 237KB ) 双缓冲绘图实现图片查看格式转换器","children":[{"title":"PicZoom","children":[{"title":"PicZoom","children":[{"title":"PicZoomDoc.cpp <span style='color:#111;'> 1.51KB </span>","children":null,"spread":false},{"title":"PicZoom.h <span style='color:#111;'> 477B </span>","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 910B </span>","children":null,"spread":false},{"title":"PicZoom.cpp <span style='color:#111;'> 2.63KB </span>","children":null,"spread":false},{"title":"PicZoom.vcproj.USER-20150209KM.Administrator.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 2.78KB </span>","children":null,"spread":false},{"title":"PicZoom.aps <span style='color:#111;'> 113.60KB </span>","children":null,"spread":false},{"title":"res","children":[{"title":"PicZoomDoc.ico <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"Toolbar.bmp <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"PicZoom.ico <span style='color:#111;'> 66.19KB </span>","children":null,"spread":false},{"title":"PicZoom.rc2 <span style='color:#111;'> 363B </span>","children":null,"spread":false}],"spread":true},{"title":"PicZoom.rc <span style='color:#111;'> 10.25KB </span>","children":null,"spread":false},{"title":"CMemDC.h <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false},{"title":"PicZoomView.h <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false},{"title":"MainFrm.h <span style='color:#111;'> 669B </span>","children":null,"spread":false},{"title":"stdafx.cpp <span style='color:#111;'> 140B </span>","children":null,"spread":false},{"title":"PicZoomDoc.h <span style='color:#111;'> 554B </span>","children":null,"spread":false},{"title":"PicZoom.vcproj <span style='color:#111;'> 5.80KB </span>","children":null,"spread":false},{"title":"Resource.h <span style='color:#111;'> 450B </span>","children":null,"spread":false},{"title":"MainFrm.cpp <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"PicZoomView.cpp <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false}],"spread":false},{"title":"PicZoom.suo <span style='color:#111;'> 24.50KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"PicZoom.exe <span style='color:#111;'> 238.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"基于MFC单文档的图片查看格式转换器.txt <span style='color:#111;'> 515B </span>","children":null,"spread":false},{"title":"PicZoom.sln <span style='color:#111;'> 887B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明