首页 开发技术 C++     /    MFC图片自由鼠标交互(拖拽、鼠标滚动自由放大)的图片查看类

MFC图片自由鼠标交互(拖拽、鼠标滚动自由放大)的图片查看类

上传者: anhua_momo | 上传时间:2016/1/19 8:23:46 | 文件大小:2.15MB | 文件类型:zip
MFC图片自由鼠标交互(拖拽、鼠标滚动自由放大)的图片查看类
最近刚学GDI+,就想找个应用练练手,于是基于GDI+封装了此类,接口已经独立出来,使用十分方便,在MFC上直接使用(在VS2010x64上编译,32位也可以),类的特定如下:1.基于GDI+封装的类,文档和对话框可直接使用;
2.类初始化时可选择图片能否充满控件,充满的话,图片会适应控件的宽度进行缩放,但会保存原有的长宽比不变;
3.变换前后的坐标关系已经封装好,可直接调用;
4.缩放前后采样最临近点差值(windows图片查看器和PS都是采样这种差值方式,可能是因为效率比较高),具体差值方式可更改,参考一下GDI+就可以,如果想对图像像素进行操作,可使用GDI+的Bitmap类,可对图像像素点进行操作

文件下载

资源详情

[{"title":"(30个子文件2.15MB)MFC图片自由鼠标交互(拖拽、鼠标滚动自由放大)的图片查看类","children":[{"title":"ImageZoomClass","children":[{"title":"ImageZoom","children":[{"title":"ImageZoom.cpp <span style='color:#111;'>3.84KB</span>","children":null,"spread":false},{"title":"ImageZoom.h <span style='color:#111;'>1.02KB</span>","children":null,"spread":false}],"spread":true},{"title":"DEMO","children":[{"title":"TEST_GDI+_DLG.sln <span style='color:#111;'>1.23KB</span>","children":null,"spread":false},{"title":"x64","children":[{"title":"Debug","children":null,"spread":false}],"spread":true},{"title":"TEST_GDI+_DLG","children":[{"title":"stdafx.cpp <span style='color:#111;'>146B</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.vcxproj.user <span style='color:#111;'>143B</span>","children":null,"spread":false},{"title":"res","children":[{"title":"TEST_GDI+_DLG.ico <span style='color:#111;'>66.19KB</span>","children":null,"spread":false},{"title":"TEST_GDI_DLG.rc2 <span style='color:#111;'>680B</span>","children":null,"spread":false}],"spread":true},{"title":"stdafx.h <span style='color:#111;'>1.59KB</span>","children":null,"spread":false},{"title":"targetver.h <span style='color:#111;'>234B</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLGDlg.h <span style='color:#111;'>1.20KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.APS <span style='color:#111;'>103.39KB</span>","children":null,"spread":false},{"title":"ImageZoom","children":[{"title":"ImageZoom.cpp <span style='color:#111;'>3.84KB</span>","children":null,"spread":false},{"title":"ImageZoom.h <span style='color:#111;'>1.02KB</span>","children":null,"spread":false}],"spread":true},{"title":"TEST_GDI+_DLG.vcxproj.filters <span style='color:#111;'>2.18KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.vcxproj <span style='color:#111;'>10.06KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.h <span style='color:#111;'>557B</span>","children":null,"spread":false},{"title":"x64","children":[{"title":"Debug","children":[{"title":"TEST_GDI+_DLG.Build.CppClean.log <span style='color:#111;'>2.41KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.log <span style='color:#111;'>466B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"test_image","children":[{"title":"天使.jpg <span style='color:#111;'>57.25KB</span>","children":null,"spread":false},{"title":"girl_0.jpg <span style='color:#111;'>661.53KB</span>","children":null,"spread":false},{"title":"girl.jpg <span style='color:#111;'>13.02KB</span>","children":null,"spread":false}],"spread":false},{"title":"resource.h <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.rc <span style='color:#111;'>10.20KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLGDlg.cpp <span style='color:#111;'>4.34KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.cpp <span style='color:#111;'>2.33KB</span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'>3.17KB</span>","children":null,"spread":false}],"spread":false},{"title":"TEST_GDI+_DLG.suo <span style='color:#111;'>38.00KB</span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"test_gdi+_dlg-785673c2","children":null,"spread":false}],"spread":true},{"title":"Debug","children":[{"title":"TEST_GDI+_DLG.exe <span style='color:#111;'>158.50KB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.ilk <span style='color:#111;'>1.08MB</span>","children":null,"spread":false},{"title":"TEST_GDI+_DLG.pdb <span style='color:#111;'>4.80MB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

  • weixin_44680235:
    基本符合描述很好2021-03-11
  • 猎狐肥:
    亲测,有用,verygood2019-10-23
  • qq_40601589:
    厉害,终于找到对我有帮助的资源之一,赞赞赞2019-08-27
  • 视觉闫小亘:
    相当牛掰,666,点赞2019-04-20
  • sp_daiyq:
    good~~有用2018-11-23

免责申明

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