CBitmap是GDI里面的,那么,在GDI+里面有无操作位图的类? 其他有没有啦?
CBitmap是GDI里面的,那么,在GDI+里面有无操作位图的类?
(GDI+是什么冬冬啊?我知道GDI是从CObject派生的类,那么GDI+呢?)
对位图操作的封装,MFC 仅有 CBitmap ? 有无CDib之类的(常看到这个类呢)?
还有,CBitmap封装到了什么程度?能否几何变换?能否图像增强?
上面共有4个问题。每个22分。谢了!
问题点数:88、回复次数:8Top
1 楼DentistryDoctor(Data Recovery -- http://www.powerdatarecovery.com)回复于 2005-01-13 17:22:19 得分 33
Image类。
GDI/GDI+的内容,可以参考MSDN。Top
2 楼cadinfo(无语清风)回复于 2005-01-13 17:29:47 得分 33
GDI+操作图像的类有两个
1.Image->2.Bitmap
协同操作,用于显示的类是Graphic
还有一个ImageAttribute用于操作颜色属性
GDI+是2002 Oct Platform SDK中对原有基于GDI图形图像以及其显示的更新
支持更多的图像格式,其Bitmap封装的比较好,能实现你所能想到的全部基本功能.Top
3 楼vcleaner(我没当大哥很久了.......)回复于 2005-01-13 17:35:14 得分 11
参考:
http://www.vckbase.com/document/finddoc.asp?keyword=GDI%2BTop
4 楼bobob(静思)回复于 2005-01-13 17:37:00 得分 5
功能强大的Image类
Image image("c:\\aaa.jpg");
初始化后就可以使用旋转、缩放、flip、显示等等
Top
5 楼cadinfo(无语清风)回复于 2005-01-13 21:56:06 得分 0
功能强大的Image类
Image image("c:\\aaa.jpg");
初始化后就可以使用旋转、缩放、flip、显示等等
==============
纠正一下这位,估计你都没有怎么用过Gdi+,上来教不是错了
Image image(L"c:\\aaa.jpg");
注意路径字符串前面的L,用于转换成为wchar字符串
Image仅能实现基本功能,真正好用的还是Bitmap类.Top
6 楼I_Love_CPP(Never stop!)回复于 2005-01-13 22:47:15 得分 6
1.他们已经回答了。
2.
Microsoft® Windows® GDI+ is the portion of the Windows XP operating system or Windows Server 2003 operating system that provides two-dimensional vector graphics, imaging, and typography.
GDI+ improves on Windows Graphics Device Interface (GDI) (the graphics device interface included with earlier versions of Windows) by adding new features and by optimizing existing features.
3.
MFC无CDib,但还有CImage(比CBitmap和常见的CDib更强大),
CImage provides enhanced bitmap support, including the ability to load and save images in JPEG, GIF, BMP, and Portable Network Graphics (PNG) formats.
//注意这儿,这个DIB功能是你感兴趣的:
CImage takes bitmaps that are either device-independent bitmap (DIB) sections or not;
4.
从CBitmap提供的主要功能:
GetBitmapBits
GetBitmapDimension
SetBitmapBits
SetBitmapDimensionTop
7 楼hushuangyan74()回复于 2005-01-14 01:46:41 得分 0
I_Love_CPP(我爱C++) ( ) 信说得很好,学到了东西!Top
8 楼cadinfo(无语清风)回复于 2005-01-26 13:29:06 得分 0
呵呵,楼主操蛋,咋还不结帖Top




