Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
A version of this page is also available for
4/8/2010
The GDI is the part of the Graphics, Windowing, and Events Subsystem (GWES) that controls the display of text and graphics. Use GDI to draw lines, curves, closed figures, text, and bitmap images.
GDI uses a device context to store data that it requires to display text and graphics on a specified device. The graphics objects stored in a device context include a pen for line drawing, a brush for painting and filling, a font for text output, a bitmap for copying or scrolling, a palette for defining the available colors, and a clipping region. Windows Embedded CE supports printer device contexts for drawing on printers, display device contexts for drawing on video displays, and memory device contexts for drawing into memory.
The following table shows GDI capabilities supported by Windows Embedded CE.
GDI Capability | Description |
---|---|
Raster and TrueType fonts |
TrueType fonts are scalable and rotatable. Seven rasterized system fonts are available in several sizes in ROM. You can also add your own raster fonts. Windows Embedded CE supports only one category of font, either raster or TrueType, on a specified system. |
Custom color palettes and both palletized and nonpalletized color display devices |
Supports color bit depths of 1, 2, 4, 8, 16, 24, and 32 bits per pixel (bpp). A bpp depth of 2 is unique to Windows Embedded CE. |
Bit block transfer functions and raster operation codes |
Enables you to transform and combine bitmaps. |
Pens and brushes |
Supports dashed, wide, and solid pens, patterned brushes. |
Printing |
Supports graphics printing. |
Cursors |
Supports full use of cursors, including user-defined cursors, or the wait cursor. |
Shape drawing functions |
Supports the ellipse, polygon, rectangle, and round rectangle shapes. |
Windows Embedded CE GDI does not support the following capabilities:
- Transformation functions of coordinate space, such as SetMapMode, GetMapMode, SetViewportExt, and SetWindowExt. Coordinate space is equivalent to device space.
- World Transform API.
- Color cursors.