|
Direct2D〔https://msdn.microsoft.com/en-us/library/windows/desktop/dd370990(v=vs.85).aspx〕 is a 2D and vector graphics application programming interface (API) designed by Microsoft and implemented in Windows 8, Windows 7 and Windows Server 2008 R2, and also Windows Vista and Windows Server 2008 (with Platform Update installed). Microsoft has fixed many Direct2D bugs in Windows 7 through Windows 7 Service Pack 1(SP1), KB2505438 update, KB2670838 update and KB2912390 update. Direct2D offers high quality and fast performance while maintaining interoperability with GDI/GDI+ APIs and Direct3D/DirectDraw APIs. It can take advantage of hardware acceleration through compatible graphics cards. Direct2D 1.1 was launched with Windows 8.〔https://msdn.microsoft.com/en-us/library/windows/hardware/dn653328(v=vs.85).aspx#tir〕 It was also backported to Windows 7 SP1 (but not to Windows Vista) via the Windows 7 platform update. The original version of Direct2D was tied to DirectX 10, whereas Direct2D 1.1 integrates with DirectX 11.1.〔 Windows 8 also added interoperability between XAML and Direct2D (and even Direct3D) components, which can be all mixed in an application.〔http://blogs.msdn.com/b/windowsappdev/archive/2012/03/15/combining-xaml-and-directx.aspx〕 New features were added to Direct2D in Windows 8.1:〔https://msdn.microsoft.com/en-us/library/windows/desktop/hh802478(v=vs.85).aspx〕 Geometry realizations,〔https://msdn.microsoft.com/en-us/library/windows/desktop/dn363632(v=vs.85).aspx〕 Direct2D effects API,〔https://msdn.microsoft.com/en-us/library/windows/desktop/hh973240(v=vs.85).aspx〕〔https://msdn.microsoft.com/en-us/library/windows/desktop/hh706316(v=vs.85).aspx〕〔https://msdn.microsoft.com/en-us/library/windows/desktop/hh973241(v=vs.85).aspx〕 command list API, multithreading API's, per-device rendering priority, support for JPEG YCbCr images, support for block compressed formats (DDS files). This latter version of Direct2D is tied to Direct X 11.2.〔 ==Overview== Direct2D is a native code API based on C++ that can be called by managed code and uses a "lightweight COM" approach just like Direct3D, with minimal amount of abstraction. However, unlike WPF and similarly to GDI/GDI+, Direct2D is an "immediate mode" rendering API with simple BeginDraw/Draw/EndDraw calls; Direct2D has no concept of a "scene" and does not use retained tree structures, and the rendering state is preserved between drawing calls. Direct2D can minimize CPU usage and utilise hardware rendering on a graphics card that supports Direct3D 10.1 and/or Direct3D 10 Level 9 with WDDM 1.1 drivers, falling back to software rendering using WARP10 in situations when hardware is not available, such as session 0, and for remote server-side rendering. Direct2D performance and memory usage scale linearly with primitive counts in both software and hardware. Direct2D〔https://msdn.microsoft.com/en-us/library/windows/desktop/ff729481(v=vs.85).aspx〕〔https://msdn.microsoft.com/en-us/library/windows/desktop/dd756766(v=vs.85).aspx〕 supports high-quality rendering with the following features: * ClearType text rendering (provided by DirectWrite) * ClearView * Alpha Correction * Subpixel rendering * Grayscale text rendering * Grayscale anti-aliasing * Per primitive antialiasing * Draw and fill commands for geometries (lines, curves) and bitmaps * Solid color, linear, radial, and bitmap brushes. * Rendering to intermediate layers * Rich geometry operations (e.g. unions, intersections, widening, outlining, etc.) Direct2D allows interoperability with GDI, GDI+, and Direct3D and permits rendering to and from a Direct3D surface, as well as to and from a GDI/GDI+ device context (HDC) with full serialization of surfaces and device contexts, which enables it to work with other native Windows technologies such as DirectWrite, Windows Imaging Component, etc. Such interoperability allows developers to gradually replace critical code paths with Direct2D code without the need to overhaul their entire source code. Direct2D uses a device-independent coordinate system, which allows automatic GUI scaling for different DPI settings that depend on various display resolutions and monitor sizes. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Direct2D」の詳細全文を読む スポンサード リンク
|