The Graphics Device Interface (GDI, sometimes called Graphical Device Interface) is one of the three core components or "subsystems", together with the kernel and the user (window manager), of Microsoft Windows.
GDI is a Microsoft Windows standard for representing graphical objects and transmitting them to output devices such as monitors and printers.
Perhaps the most significant capability of GDI over more direct methods of accessing the hardware is its scaling capabilities, and abstraction of target devices. Using GDI, it is very easy to draw on multiple devices, such as a screen and a printer, and expect proper reproduction in each case. This capability is at the centre of all WYSIWYG applications for Microsoft Windows.
Simple games which do not require fast graphics rendering, such as Freecell or Minesweeper, use GDI. However, GDI cannot animate properly (no notion of synchronizing with the framebuffer) and lacks rasterization for 3D. Modern games use DirectX or OpenGL, which give programmers access to more hardware capabilities.
In Windows Vista, GDI applications running in the new compositing engine, Desktop Window Manager, will no longer be hardware-accelerated.
The disadvantages are that:
Most current model inkjet printers are GDI-based (largely for performance reasons, as the cost factor has primarily to do with lasers), but the trend is to add more flexibility: many offer Mac support, and the Linux community has become increasingly good at making Linux drivers available. Some (notably Epson) often also offer a more traditional emulation as a fallback.
In general, the cheapest current-model laser printers are GDI devices. Most manufacturers also produce more flexible models that add PCL compatibility, or PostScript, or both. In most cases it is only the very cheapest models in any given manufacturer's range that are GDI-only.
The Microsoft .NET class library provides a managed interface for GDI+ via the System.Drawing namespace.
GDI+ is similar (in purpose and structure) to Apple's Quartz 2D subsystem, and the open-source libart and Cairo libraries.
Operating system technology | Microsoft APIs
Graphics Device Interface | GDI | Graphics Device Interface | Graphics Device Interface | GDI | GDI | GDI
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Graphics Device Interface".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world