文件名称:ImageZoomClass
- 所属分类:
- Windows编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2016-06-26
- 文件大小:
- 2.15mb
- 下载次数:
- 0次
- 提 供 者:
- 于**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
最近刚学GDI+,就想找个应用练练手,于是基于GDI+封装了此类,接口已经独立出来,使用十分方便,在MFC上直接使用(在VS2010 x64上编译,32位也可以),类的特定如下:
1.基于GDI+封装的类,文档和对话框可直接使用;
2.类初始化时可选择图片是否充满控件,充满的话,图片会适应控件的宽度进行缩放,但会保存原有的长宽比不变;
3.变换前后的坐标关系已经封装好,可直接调用;
4.缩放前后采样最临近点差值(windows图片查看器和PS都是采样这种差值方式,可能是因为效率比较高),具体差值方式可更改,参考一下GDI+就可以,如果想对图像像素进行操作,可使用GDI+的Bitmap类,可对图像像素点进行操作-Recently learning GDI+, want to find a application practice, so based on GDI+ package such interface has been independent, and the use is very convenient, in the MFC used directly (in VS2010 x64 compiler, 32 bits), specific classes are as follows:
1 class based on the GDI+ package, the document and dialog box can be used directly
2 class initialization can choose whether the picture is full of controls, full of words, the picture will adapt to the control of the width of the zoom, but will preserve the original length and width ratio unchanged
3 coordinates of the transformation before and after the relationship has been packaged, can be called directly
. scaling before and after sampling the approaching spreads values (Windows picture viewer and PS are the difference between sampling, probably because the efficiency is high. In detail, the difference can be changed, refer to the GDI+ can be, if you want to operate on the image pixels, using GDI bitmap class, can operate on the
1.基于GDI+封装的类,文档和对话框可直接使用;
2.类初始化时可选择图片是否充满控件,充满的话,图片会适应控件的宽度进行缩放,但会保存原有的长宽比不变;
3.变换前后的坐标关系已经封装好,可直接调用;
4.缩放前后采样最临近点差值(windows图片查看器和PS都是采样这种差值方式,可能是因为效率比较高),具体差值方式可更改,参考一下GDI+就可以,如果想对图像像素进行操作,可使用GDI+的Bitmap类,可对图像像素点进行操作-Recently learning GDI+, want to find a application practice, so based on GDI+ package such interface has been independent, and the use is very convenient, in the MFC used directly (in VS2010 x64 compiler, 32 bits), specific classes are as follows:
1 class based on the GDI+ package, the document and dialog box can be used directly
2 class initialization can choose whether the picture is full of controls, full of words, the picture will adapt to the control of the width of the zoom, but will preserve the original length and width ratio unchanged
3 coordinates of the transformation before and after the relationship has been packaged, can be called directly
. scaling before and after sampling the approaching spreads values (Windows picture viewer and PS are the difference between sampling, probably because the efficiency is high. In detail, the difference can be changed, refer to the GDI+ can be, if you want to operate on the image pixels, using GDI bitmap class, can operate on the
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ImageZoomClass\DEMO\Debug\TEST_GDI+_DLG.exe
..............\....\.....\TEST_GDI+_DLG.ilk
..............\....\.....\TEST_GDI+_DLG.pdb
..............\....\TEST_GDI+_DLG\ImageZoom\ImageZoom.cpp
..............\....\.............\.........\ImageZoom.h
..............\....\.............\ReadMe.txt
..............\....\.............\res\TEST_GDI+_DLG.ico
..............\....\.............\...\TEST_GDI_DLG.rc2
..............\....\.............\resource.h
..............\....\.............\stdafx.cpp
..............\....\.............\stdafx.h
..............\....\.............\targetver.h
..............\....\.............\TEST_GDI+_DLG.APS
..............\....\.............\TEST_GDI+_DLG.cpp
..............\....\.............\TEST_GDI+_DLG.h
..............\....\.............\TEST_GDI+_DLG.rc
..............\....\.............\TEST_GDI+_DLG.vcxproj
..............\....\.............\TEST_GDI+_DLG.vcxproj.filters
..............\....\.............\TEST_GDI+_DLG.vcxproj.user
..............\....\.............\TEST_GDI+_DLGDlg.cpp
..............\....\.............\TEST_GDI+_DLGDlg.h
..............\....\.............\test_image\girl.jpg
..............\....\.............\..........\girl_0.jpg
..............\....\.............\..........\天使.jpg
..............\....\.............\x64\Debug\TEST_GDI+_DLG.Build.CppClean.log
..............\....\.............\...\.....\TEST_GDI+_DLG.log
..............\....\TEST_GDI+_DLG.sln
..............\....\TEST_GDI+_DLG.suo
..............\ImageZoom\ImageZoom.cpp
..............\.........\ImageZoom.h
..............\DEMO\TEST_GDI+_DLG\x64\Debug
..............\....\ipch\test_gdi+_dlg-785673c2
..............\....\TEST_GDI+_DLG\ImageZoom
..............\....\.............\res
..............\....\.............\test_image
..............\....\.............\x64
..............\....\x64\Debug
..............\....\Debug
..............\....\ipch
..............\....\TEST_GDI+_DLG
..............\....\x64
..............\DEMO
..............\ImageZoom
ImageZoomClass