q2K BHP
Black History Portal
THE BHP WIRE —
HIDDEN TRUTHS
What's New!
THE JOURNEY THROUGH TIME

Explore Black History

Explore the people, places, events, achievements, struggles and stories that shaped our journey.

✊🏾

Civil Rights

Movements, leaders, victories and the continuing fight for equality.

⚙️

Black Inventors

Innovation, patents, science, technology and world-changing contributions.

🏆

Sports

Pioneers, champions, Negro Leagues, records, activism and excellence.

♟️

People

Meet the people whose lives, choices and achievements shaped the journey.

📍

Places

Black towns, communities, institutions and places where history happened.

📜

Events

Moments that changed communities, movements, institutions and the nation.

Enter a person, place, event, or topic.
MY'STORY

The MOVE Fire

This is a personal recollection on the Move fire on May 13, 1985 Philadelphia police fired thousands of rounds at the MOVE house, city officials approved dropping an explosive device on the roof, the resulting fire was allowed to burn, 11 people—including five children—died, and 61 homes were destroyed. Philadelphia City Council later called it a “brutal attack carried out by the City of Philadelphia on its own citizens” and acknowledged that no individual faced criminal consequences for the bombing. One timeline correction worth preserving for the BHP record: the major previous MOVE-police confrontation was August 8, 1978, about seven years before the bombing, not a year or two earlier. Officer James Ramp was killed, other police and firefighters were wounded, nine MOVE members were later convicted, and television cameras recorded police beating Delbert Africa during his arrest. The 1985 MOVE Commission later specifically criticized city planners for failing to adequately use lessons from that 1978 confrontation. And that actually strengthens the point you’re making: 1985 did not happen without precedent or institutional memory. There had already been a deadly confrontation with MOVE, years of conflict, negotiations and police involvement before Osage Avenue.

MORE →
BLACK FACTS
The Truths They Never Taught You...

Katherine Johnson — Mathematics to the Moon

Katherine Johnson’s mathematical calculations helped guide some of America’s most important early space missions while she confronted the racial and gender barriers faced by Black women in twentieth-century America.

MORE →
BHP gathered finds from its connected research sources. Showing the 4 strongest Black History matches.
← BACK TO RESULTS
Wikipedia

Direct2D

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

Direct2D takes advantage of hardware acceleration via the graphics processing unit (GPU) found in compatible graphics cards within personal computer, tablet, smartphone and modern graphical device. It offers high visual quality and fast rendering performance while maintaining full interoperability with classic Win32 graphics APIs such as GDI/GDI+ and modern graphics APIs such as Direct3D.[4]

Overview

[edit]

Direct2D is a native code API based on C++ that can be called by managed code and uses a "lightweight COM" approach[5] 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 utilize hardware rendering on a graphics card with minimum support of Direct3D Feature Level 9 with WDDM 1.1 drivers. Applications can choose to use it exclusively with CPU, the so-called software rendering by using it in conjunction with WARP10 in situations when hardware capability is not available, such as when running within a device with minimal GPU support, under terminal service, Windows session 0, or when graphics rendering is performed in a remote server with the graphical result sent back to the client device. Direct2D performance and memory usage scale linearly with primitive counts in both software and hardware.

Direct2D[6][7] supports high-quality rendering with the following key features:

  • High-quality subpixel text rendering via DirectWrite for both grayscale and ClearType technique
  • Per-primitive antialiasing
  • Bézier geometry draw and fill
  • Rich geometry operations (e.g. Boolean operations, path widening, outlining, etc.)
  • Composite layers
  • Primitive blend modes (e.g. source-over, source-copy, min blends, etc.)
  • Image built-in and custom effects for photo adjustment, graphical and color transform
  • Gradient brush and mesh
  • Command list for command buffering and printing
  • Scalable ink stroke
  • Sprite batch for game development

Direct2D allows full interoperability with GDI, GDI+, and permits rendering to and from a Direct3D surface, as well as to and from a GDI/GDI+ device context (HDC). It can be used effectively together with Windows Imaging Component (WIC) for image encoding/decoding, and with DirectWrite for text formatting and font processing. Such interoperability allows developers to gradually replace critical code paths with Direct2D code without the need to overhaul their entire source code. In Windows 10 timeframe, an Open Source project called Win2D was developed by Microsoft to further simplify the usage of Direct2D and DirectWrite in Universal Windows Platform (UWP) application. Win2D is a highly-efficient WinRT wrapper of Direct2D and DirectWrite designed from the ground up to integrate seamlessly with XAML Canvas control while preserving the power of the underlying graphics subsystem.

Subsequent versions

[edit]

Direct2D 1.1

[edit]

An updated version of Direct2D was launched with Windows 8 in October 2012.[8] It was also backported to Windows 7 SP1 (but not to Windows Vista) via the Windows 7 platform update.[9][10][11] The original version of Direct2D was tied to DirectX 11 (in hardware, up to Direct3D 10.1 is used), whereas this version of Direct2D integrates with DirectX 11.1.[9] Windows 8 also added interoperability between XAML and Direct2D along with Direct3D components, which can be all mixed in an application.[12]

Direct2D 1.2

[edit]

New features were added to Direct2D with Windows 8.1 in October 2013:[13] Geometry realizations,[14] Direct2D effects API,[15][16][17] command list API, multithreading APIs, per-device rendering priority, support for JPEG YCbCr images for smaller memory footprint, and support for block compressed formats (DDS files).

Direct2D 1.3

[edit]

The release of Windows 10 in July 2015 brought important updates and new features to Direct2D such as the performance improvement of rendering scalable text without font rasterization, the ability to download the needed font from the cloud on demand without requiring the font installation step, an optimization for faster image loading and image effect rendering, and a more sophisticated way to apply gradient brush through the use of 2D mesh made of gradient patches. This release also introduced a brand-new API extension to support digital ink, which is highly leveraged by the Microsoft Edge browser as well as the ink canvas XAML control.

Implementation

[edit]

In their 2012 paper on the competing NV path rendering OpenGL extension, Mark Kilgard and Jeff Bolz explain (and criticize) the internals of Direct2D as follows: "Direct2D operates by transforming paths on the CPU and then performing a constrained trapezoidal tessellation of each path. The result is a set of pixel-space trapezoids and additional shaded geometry to compute fractional coverage for the left and right edges of the trapezoids. These trapezoids and shaded geometry are then rasterized by the GPU. The resulting performance is generally better than entirely CPU-based approaches and requires no ancillary storage for multisample or stencil state; Direct2D renders directly into an aliased framebuffer with properly antialiased results. Direct2D’s primary disadvantage is [that] the ultimate performance is determined not by the GPU (doing fairly trivial rasterization) but rather by the CPU performing the transformation and trapezoidal tessellation of each path and Direct3D validation work."[18]

In July 2012, the Windows 8 team posted the following on the blog of Steven Sinofsky: "To improve geometry rendering performance in Windows 8, we focused on reducing the CPU cost associated with tessellation in two ways. First, we optimized our implementation of tessellation when rendering simple geometries like rectangles, lines, rounded rectangles, and ellipses."[19] These common-case optimizations claimed to improve performance in the range of 184% to 438%, depending on the primitive. The post continued: "Second, to improve performance when rendering irregular geometry (e.g. geographical borders on a map), we use a new graphics hardware feature called Target Independent Rasterization, or TIR. TIR enables Direct2D to spend fewer CPU cycles on tessellation, so it can give drawing instructions to the GPU more quickly and efficiently, without sacrificing visual quality. TIR is available in new GPU hardware designed for Windows 8 that supports DirectX 11.1."[19] This was followed by a benchmark using some 15 SVGs, claiming performance improvements in the range of 151% to 523%. The section concluded: "We worked closely with our graphics hardware partners to design TIR. Dramatic improvements were made possible because of that partnership. DirectX 11.1 hardware is already on the market today and we’re working with our partners to make sure more TIR-capable products will be broadly available."[19]

The TIR feature was among those that caused a "war of words" between Nvidia and AMD around December 2012, because Nvidia's Kepler GPU family does not support it, whereas AMD's GCN does.[20] In response to customer demands, an Nvidia support staffer posted that TIR cannot be simply implemented at the driver level, but requires new hardware;[21][22] the Maxwell 2 architecture, introduced in September 2014, is such hardware.[23]

In Windows 8.1, Direct2D can use the Direct3D11 hardware tesselators, but only in conjunction with D2D1_FILL_MODE_ALTERNATE. If another fill mode is used (e.g. D2D1_FILL_MODE_WINDING) then Direct2D falls back to tessellation on the CPU, but still uses TIR for anti-aliasing (if TIR is available). Since hardware tessellation is available in base Direct3D11 (not necessarily 11.1), Microsoft claimed significant performance improvements with Direct2D in Windows 8.1 (vs. Windows 8) on non-TIR hardware.[24]

Adoption and performance

[edit]

Ars Technica's Peter Bright noted in the summer of 2012 that "most desktop applications don't use Direct2D."[25]

Web browsers

[edit]

Internet Explorer 9 and later versions use Direct2D and DirectWrite for improved performance and visual quality.[26][27][28]

Google Chrome never adopted the use of Direct2D and ever since uses its own 2D library called Skia, which in turn renders through ANGLE on Windows.[29] This applies to all browsers that were later forked from Google's open source project Chromium, e.g. Opera, Vivaldi and Microsoft Edge.

Mozilla Firefox however, adopted the use of Direct2D with version 3.7, roughly doubling its rendering speed compared to previous versions.[30] (Firefox 4 also added DirectWrite support, but this was made non-default for some fonts in Firefox 7 due to user complaints about the rendering quality.[31]) In Firefox 70.0, on old hardware, Direct2D is disabled on blacklisted old graphics drivers if they lack features and area is blacked out e.g. in Google Maps.[32] In 2025, with Firefox version 146.0, Direct2D support was removed entirely from the application. Mozilla had already shifted to Skia support in previous versions.[33]

Microsoft Office

[edit]

Microsoft Office 2013 supports either Direct2D+DirectWrite or GDI+Uniscribe for display rendering and typography.[34]

See also

[edit]

References

[edit]
  1. ^ "Direct2D - Win32 apps". 26 May 2022.
  2. ^ "What's New in Direct2D and DirectWrite for Windows 10 (Channel 9)". Channel 9. Retrieved 2015-12-03.
  3. ^ "Updated Direct2D in March DirectX SDK - Tom's Blog - Site Home - TechNet Blogs". blogs.technet.com. 2009-03-24. Archived from the original on 2009-03-28. Retrieved 2011-12-26.
  4. ^ "Direct2D". MSDN. Retrieved 2011-12-26.
  5. ^ ".net - What exactly is "lightweight COM"?". Stack Overflow.
  6. ^ "Text Rendering with Direct2D and DirectWrite - Win32 apps". 19 August 2020.
  7. ^ "Supported Pixel Formats and Alpha Modes - Win32 apps". 20 October 2020.
  8. ^ "DirectX feature improvements in Windows 8 - Windows drivers". 15 December 2021.
  9. ^ a b "Windows with C++ - Introducing Direct2D 1.1". Msdn.microsoft.com. 2014-05-02. Retrieved 2014-08-09.
  10. ^ "Platform Update for Windows 7 (Windows)". Msdn.microsoft.com. Retrieved 2014-08-09.
  11. ^ Pooya Eimandar (2013). DirectX 11.1 Game Programming. Packt Publishing Ltd. p. 45. ISBN 978-1-84969-481-0.
  12. ^ "DevBlogs".
  13. ^ "What's new in Direct2D - Win32 apps". 19 August 2020.
  14. ^ "Geometry Realizations Overview - Win32 apps". 19 August 2020.
  15. ^ "Effects (Direct2D) - Win32 apps". 19 August 2020.
  16. ^ "Built-in Effects - Win32 apps". 18 September 2021.
  17. ^ "How to Apply Effects to Primitives - Win32 apps". 19 August 2020.
  18. ^ Kilgard, Mark J. (2012). "GPU-accelerated path rendering". ACM Transactions on Graphics. 31 (6): 1–10. doi:10.1145/2366145.2366191. S2CID 12967014.
  19. ^ a b c Rob Copeland, with contributions from Sriram Subramanian, Dan McLachlan, Kam VedBrat, Steve Lim, and Jianye Lu, and introduction by Steven Sinofsky Hardware accelerating everything: Windows 8 graphics
  20. ^ "War of Words Between NVIDIA and AMD Over DirectX 11.1 Support Continues". Hardware Canucks. 2012-12-17. Archived from the original on 2015-02-10. Retrieved 2014-08-09.
  21. ^ "Give us DX11.1 driver support on DX11 cards. no new hardware is required for dx11.1". NVIDIA.
  22. ^ "Fermi and Kepler DirectX API Support | NVIDIA". nvidia.custhelp.com.
  23. ^ Smith, Ryan. "The NVIDIA GeForce GTX 980 Review: Maxwell Mark 2". www.anandtech.com. Archived from the original on September 22, 2014.
  24. ^ http://channel9.msdn.com/Events/Build/2013/3-191 19:00 to 20:00 and 55:00 to 56:30
  25. ^ Bright, Peter (2012-07-24). "Windows 8 GPU acceleration: good news for Metro". Ars Technica. Retrieved 2014-08-09.
  26. ^ onlyconnect (2010-08-11). "Firefox 4 as Psychedelic as IE9 with Direct2D enabled". Tim Anderson's IT Writing. Retrieved 2026-02-03.
  27. ^ Shankland, Stephen (2014-03-25). "Firefox 4 beta 4 adds hardware acceleration". CNET. Retrieved 2014-08-06.
  28. ^ "Mozilla chucks Roc at Microsoft's new hardness • The Register". www.theregister.com.
  29. ^ "GPU Accelerated Compositing in Chrome - The Chromium Projects". Archived from the original on September 12, 2010. Retrieved 2014-08-06.
  30. ^ Halfacree, Gareth (2009-11-27). "Firefox 3.7 gets Direct2D support". bit-tech.net. Retrieved 2026-02-03.
  31. ^ "Graphic bits » Blog Archive » DirectWrite Text Rendering in Firefox 6". Blog.mozilla.org. 2011-08-11. Archived from the original on 2014-08-10. Retrieved 2014-08-09.
  32. ^ Buckler, Craig (2011-12-20). "How to Enable WebGL for Blocked Graphics Cards in Firefox". Retrieved 2019-10-21.
  33. ^ "Firefox 146.0, See All New Features, Updates and Fixes". Firefox. Retrieved 2025-12-12.
  34. ^ "Office Adopts New Windows Display Technology - Murray Sargent: Math in Office - Site Home - MSDN Blogs". Blogs.msdn.com. 2012-07-29. Retrieved 2014-08-09.
[edit]


Source: Wikipedia. Article content is retrieved live through the MediaWiki API.

No preview image
Wikipedia

Direct2D

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). Direct2D takes advantage of hardware acceleration via the graphics processing unit (GPU) found in compatible graphics cards within personal computer, tablet, smartphone and modern graphical device. It offers high visual quality and fast rendering performance while maintaining full interoperability with classic Win32 graphics APIs such as GDI/GDI+ and modern graphics APIs such as Direct3D.

MORE →
Wikipedia

DirectX

Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia, especially game programming and video, on Microsoft platforms. Originally, the names of these APIs all began with "Direct", such as Direct3D, DirectDraw, DirectMusic, DirectPlay, DirectSound, and so forth. The name DirectX was coined as a shorthand term for all of these APIs (the X standing in for the particular API names) and soon became the name of the collection. When Microsoft later set out to develop a gaming console, the X was used as the basis of the name Xbox to indicate that the console was based on DirectX technology. The X initial has been carried forward in the naming of APIs designed for the Xbox such as XInput and the Cross-platform Audio Creation Tool (XACT), while the DirectX pattern has been continued for Windows APIs such as Direct2D and DirectWrite. Direct3D (the 3D graphics API within DirectX) is widely used in the development of video games for Microsoft Windows and the Xbox line of consoles. Direct3D is also used by other software applications for visualization and graphics tasks such as CAD/CAM engineering. As Direct3D is the most widely publicized component of DirectX, it is common to see the names "DirectX" and "Direct3D" used interchangeably. The DirectX software development kit (SDK) consists of runtime libraries in redistributable binary form, along with accompanying documentation and headers for use in coding. Originally, the runtimes were only installed by games or explicitly by the user. Windows 95 did not launch with DirectX, but DirectX was included with Windows 95 OEM Service Release 2. Windows 98 and Windows NT 4.0 both shipped with DirectX, as has every version of Windows released since. The SDK is available as a free download. While the runtimes are proprietary, closed-source software, source code is provided for most of the SDK samples. Starting with the release of Windows 8 Developer Preview, DirectX SDK has been integrated into Windows SDK.

MORE →
Wikipedia

Graphics Device Interface

The Graphics Device Interface (GDI) is a legacy component of Microsoft Windows responsible for representing graphical objects and transmitting them to output devices such as monitors and printers. It was superseded by DirectDraw API and later Direct2D API. Windows apps use Windows API to interact with GDI, for such tasks as drawing lines and curves, rendering fonts, and handling palettes. The Windows USER subsystem uses GDI to render such UI elements as window frames and menus. Other systems have components that are similar to GDI; for example: Mac OS had QuickDraw, and Linux and Unix have X Window System core protocol. GDI's most significant advantages over more direct methods of accessing the hardware are perhaps its scaling capabilities and its abstract representation of target devices. Using GDI, it is possible to draw on multiple devices, such as a screen and a printer, and expect proper reproduction in each case. This capability is at the center of most "What You See Is What You Get" applications for Microsoft Windows. Simple games that do not require fast graphics rendering may use GDI. However, GDI is relatively hard to use for advanced animation, lacks a notion for synchronizing with individual video frames in the video card, and lacks hardware rasterization for 3D. Modern games usually use Direct3D, Vulkan, or OpenGL instead.

MORE →
Wikipedia

Avalonia (software framework)

Avalonia is a free and open-source .NET cross-platform XAML-based UI framework inspired by WPF/UWP and distributed under the MIT License. Avalonia supports the MVVM pattern. It enables development of cross-platform applications using any .NET language, including C#, F# and VB.NET for Windows, Linux, macOS, iOS, Android and WebAssembly. Avalonia supports multiple renderers, including Direct2D and Skia Graphics Engine, allowing it to operate on a broad range of platforms. Avalonia draws its entire UI, mirroring the approach taken by Flutter.

MORE →
TOPIC OF THE DAY

Greenwood / Black Wall Street

Before the 1921 destruction of Tulsa’s Greenwood District, Black residents had created a remarkable center of business and community life. The district included stores, professional offices, entertainment venues and homes owned by Black citizens. Understanding Greenwood means learning what was built—not only what was burned.

MORE →
TRIVIA QUESTION OF THE DAY

Who became the first Black woman to travel into space?

Mae Jemison, aboard Space Shuttle Endeavour in 1992.