這兩天考慮把DirectX 版本升級,同時把相關的功能也升級,比如畫圖,之前用的是DirectDraw比較老,現在想改用Direct2D。
Direct2D是DirectX11中的新特性,可以說是DirectDraw的升級版。DirectX最新版本
http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812,當然要想使用DirectX11需要系統支持,win7中就已帶DirectX11,而vista中使用就需要Update,以下來自MSDN文檔
Direct3D 11 Runtime
To obtain the Direct3D 11 runtime, please install the release version of Windows 7 or Windows Server 2008 R2. Windows Vista users can follow the procedure described in
KB 971644 (or
KB 971512 for corporate network users).
http://support.microsoft.com/kb/971644具體如何去實現一個DirectX2D Application 參見DirectX 2010.6 版本中SDK文檔——Windows DirectX Graphics Documention——Direct2D
Direct2D入門:
http://blog.pfan.cn/lym51/52200.html使用Direct2D繪圖
http://msdn.microsoft.com/zh-cn/magazine/ee413543.aspx