What is the difference between GDI and GDI+?

99封情书 提交于 2019-12-22 01:42:38

问题


Are there any differences between those two libraries?


回答1:


According to the wikipedia article on GDI:

With the introduction of Windows XP, GDI was deprecated in favor of its successor, the C++ based GDI+ subsystem. GDI+ adds anti-aliased 2D graphics, floating point coordinates, gradient shading, more complex path management, intrinsic support for modern graphics-file formats like JPEG and PNG, and support for composition of affine transformations in the 2D view pipeline.




回答2:


GDI is not object oriented and provide hardware abstraction for win32 plateform. It's written in C

GDI+ is object oriented, and it's main purpose is to provide C++ classes to simplify and extend in some ways GDI usage.

GDI+ also target .NET , as System.Drawing is integrating it




回答3:


GDI+ is an improvement on GDI. It contains features not readily available in GDI such as gradient brushes, alpha blending, and more image format support.

You can see what other differences are here: http://msdn.microsoft.com/en-us/library/ms536338%28v=vs.85%29.aspx




回答4:


From Wikipedia:

GDI+ adds anti-aliased 2D graphics, floating point coordinates, gradient shading, more complex path management, intrinsic support for modern graphics-file formats like JPEG and PNG, and support for composition of affine transformations in the 2D view pipeline. GDI+ uses ARGB values to represent color.



来源:https://stackoverflow.com/questions/4551224/what-is-the-difference-between-gdi-and-gdi

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!