Skip to content
EntityQ1364560· pop 11· linked from 128 articles

Direct2D is a 2D vector graphics application programming interface (API) designed by Microsoft and implemented in Windows 10, Windows 8, Windows 7 and Windows Server 2008 R2, and also Windows Vista and Windows Server 2008 (with Platform Update installed).

Described at

Direct2D - Win32 apps | Microsoft Learn

Direct2D

msdn.microsoft.com →

Direct2D is a hardware-accelerated, immediate-mode, 2-D graphics API that provides high performance and high-quality rendering for 2-D geometry, bitmaps, and text. The Direct2D API is designed to interoperate well with GDI, GDI+, and Direct3D. Windows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista and later. Windows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008 and later. The Platform Update for Windows Vista and Platform Update for Windows Server 2008 are a set of run-time libraries that enables developers to target applications to Windows 7, Windows Vista, Windows Server 2008 R2, and Windows Server 2008. These updates will be available to all Windows Vista and Windows Server 2008 customers through Windows Update. Third-party applications that require Platform Update for Windows Vista or Platform Update for Windows Server 2008 can have Windows Update detect whether the required updated is installed; if it is not, Windows Update will download and install it in the background. What's new in Direct2D Here are some of the new additions to Direct2D. About Direct2D Introduces Direct2D, an API that provides Win32 developers with the ability to perform 2-D graphics rendering tasks with superior performance and visual quality. Direct2D quickstart for Windows 8 Summarizes the steps required to draw with Direct2D and provides example code. Getting Started with Direct2D Describes how to get started creating Direct2D applications and provides example code. Programming Guide This section contains conceptual programming topics that describe how to use the Direct2D API. Direct2D reference Describes the Direct2D API in detail. Tools and Utilities Tools and utilities provided for Direct2D. Samples Sample applications that demonstrate the Direct2D API. Direct2D Glossary Describes terms commonly used by the Direct2D documentation. Want to try using Ask Learn to clarify or guide you through this topic? Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.

Excerpt from a page describing this subject · 5,363 chars · not written by Vinony

Article · 中文

Direct2D是微軟公司用來取代DirectDraw以及GDI、GDI+等的一项新技術,主要提供2D動畫的硬體加速,支援Windows Vista SP2和Windows 7及以上的微软Windows操作系统。 Direct2D技術架構於Direct3D 10.1 API之上,能够透過硬件加速功能來建立2D图形,而且完全支持透明和Alpha混合。Direct2D亦支援软件实现(Software rasterizer),即在显卡不支持硬件加速的情況下,Direct2D仍可以使用软件方式描繪,且效果仍優於GDI。 Direct2D可以使用DXGI(DirectX Graphics Infrastructure)與交互操作,Direct2D还能很好的支持DirectWrite。 Direct2D的支持高品質的渲染,具有以下特點: * 支援ClearType文字的呈現方式(DirectWrite提供) * 消除原圖鋸齒狀(Per primitive antialiasing) * 幾何形狀(直線,曲線)和位圖繪製和填寫。 * 純色(Solid color)、線性。 * 描繪中間層。 * 多元的幾何操作(如unions、intersections、widening、outlining等) Direct2D的使用設備的獨立坐標系統,它可以依照顯示螢幕的大小來自動調整GUI的DPI縮放。現在Direct2D已被用於Internet Explorer 9及Mozilla Firefox 4。

Abstract from DBpedia / Wikipedia · CC BY-SA