Share via


DEVINFO (Compact 2013)

3/28/2014

This structure contains a logical representation of the physical device.

Syntax

typedef struct tagDevInfo {
  FLONG flGraphicsCaps;
  LOGFONTW lfDefaultFont;
  LOGFONTW lfAnsiVarFont; 
  LOGFONTW lfAnsiFixFont;
  ULONG cFonts; 
  ULONG iDitherFormat; 
  USHORT cxDither; 
  USHORT cyDither; 
  HPALETTE hpalDefault;
} DEVINFO, *PDEVINFO;

Members

  • flGraphicsCaps
    A set of flags that describe graphics capabilities of the graphics driver and/or its hardware. These flags are defined in the following table.

    Flag

    Definition

    GCAPS_ALTERNATEFILL

    Supports alternating fills.

    GCAPS_ARBRUSHOPAQUE

    Supports a brush for the text background color (opaque rectangle).

    GCAPS_ARBRUSHTEXT

    Supports a brush for the text foreground color.

    GCAPS_ASYNCMOVE

    Indicates the driver can move the pointer while other drawing is occurring on the device.

    GCAPS_BEZIERS

    Supports Bezier curves.

    GCAPS_CMYKCOLOR

    Supports the CMYK color space.

    GCAPS_COLOR_DITHER

    Supports color dithering to a surface.

    GCAPS_DITHERONREALIZE

    Indicates that GDI can call DrvRealizeBrush with the RGB to be dithered directly.

    GCAPS_DONTJOURNAL

    Disallows metafile printing to this printer driver. This is valid only for printer DCs and will generally result in slower return-to-application time when printing.

    GCAPS_FONT_RASTERIZER

    Indicates that device hardware can rasterize TrueType fonts.

    GCAPS_FORCEDITHER

    Allows dithering on geometric pens.

    GCAPS_GEOMETRICWIDE

    Supports geometric widening.

    GCAPS_GRAY16

    Supports anti-aliased text natively.

    GCAPS_HALFTONE

    Supports half-toning.

    GCAPS_ICM

    Indicates that color management operations can be performed by the driver or printer hardware.

    GCAPS_LAYERED

    Indicates that this is a display driver for a virtual device that mirrors the drawing operations of one or more additional physical display devices.

    GCAPS_MONO_DITHER

    Supports monochrome dithering.

    GCAPS_NUP

    Indicates that "N-up" printing is supported.

    GCAPS_OPAQUERECT

    Supports opaque rectangles in DrvTextOut.

    GCAPS_PALMANAGED

    Supports palette management.

    GCAPS_PANNING

    When GDI is simulating the pointer, it should call DrvMovePointer to notify the driver of the current cursor position. This allows the driver to handle panning virtual displays.

    GCAPS_SCREENPRECISION

    The rasterizer (font engine) should choose a screen (soft) font over a device font when choosing a font for which there is no exact match.

    GCAPS_VECTORFONT

    Supports stroking of vector fonts in DrvTextOut.

    GCAPS_VERTSTRIKE

    This flag is obsolete. In legacy drivers, this flag indicated that the driver handled vertical strikeouts in DrvTextOut.

    GCAPS_WINDINGFILL

    Supports winding mode fills.

  • lfDefaultFont
    An Extended Logical Font structure that specifies the default font for a device. For more information about this structure, see EXTLOGFONT in the Microsoft Windows SDK documentation.
  • lfAnsiVarFont
    An Extended Logical Font structure that specifies the default variable-pitch font for a device.
  • lfAnsiFixFont
    An Extended Logical Font structure that specifies the default fixed-pitch (monospaced) font for a device.
  • cFonts
    Specifies the number of device fonts. GDI assumes that the device can draw text with this number of fonts on its own surfaces and that the driver can provide metrics information about the fonts.
  • iDitherFormat
    Specifies the format of the bitmap. This parameter indicates how many bits of color information per pixel are requested, and must be one of the following values:

    Value

    Definition

    BMF_1BPP

    Monochrome

    BMF_4BPP

    4 bits per pixel

    BMF_8BPP

    8 bits per pixel

    BMF_16BPP

    16 bits per pixel

    BMF_24BPP

    24 bits per pixel

    BMF_32BPP

    32 bits per pixel

    BMF_4RLE

    4 bits per pixel, run length encoded

    BMF_8RLE

    8 bits per pixel, run length encoded

    BMF_JPEG

    JPEG compressed image

    BMF_PNG

    PNG compressed image

  • cxDither
    Specifies the X dimension of a dithered brush.
  • cyDither
    Specifies the Y dimension of a dithered brush.

    Note

    If cxDither and cyDither are nonzero, then the devide can create a dithered brush for a given RGB color.

  • hpalDefault
    Handle to the default palette for the device. The driver should create the palette by calling EngCreatePalette. The driver associates a palette with a device by returning this handle to GDI.

Requirements

Header

winddi.h

See Also

Reference

Fonts Structures