Direct2D 是微软 Windows 平台上的一个 2D 图形渲染 API(应用程序编程接口),属于 DirectX 技术体系的一部分,主要用于高性能绘制文字、几何图形、位图与特效,常用于桌面应用与图形界面开发。(它也常与 DirectWrite、Direct3D 等组件配合使用。)
/dəˈrɛkt tuː ˈdiː/
I used Direct2D to draw a simple rectangle on the window.
我用 Direct2D 在窗口上画了一个简单的矩形。
To improve rendering speed and text clarity, the app combines Direct2D with DirectWrite and uses hardware acceleration when available.
为了提升渲染速度和文字清晰度,这个应用将 Direct2D 与 DirectWrite 结合使用,并在可用时启用硬件加速。
“Direct2D” 由 Direct(直接、直连)+ 2D(二维)组成,命名思路与微软的 DirectX 系列一致,强调为图形硬件提供“更直接”的访问路径,以获得更高效的图形渲染能力。它在 Windows 7 及之后的系统中被广泛使用,用来取代或补充部分传统 GDI/GDI+ 的绘制需求。