DLLDesktopDeviceCaps()

DLLDesktopDeviceCaps()
  • SYNOPSIS:
    caps = DLLDesktopDeviceCaps(iCaps)
  • DESCRIPTION:
    Examines the desktop (screen) device context and returns a capability.
  • PARAMETERS:
    iCaps

    Any logical capability. Below are some of the more useful cap constants:
    (Note, these constants have had their name changed (prefixed "DC_") for code compatibility reasons.

    DC_DRIVERVERSION - Returns driver version.
    DC_TECHNOLOGY - Returns type of technology,. Possibly return values are: DT_PLOTTER, DT_RASDISPLAY, DT_RASPRINTER, DT_RASCAMERA,DT_CHARSTREAM, DT_METAFILE, DT_DISPFILE
    DC_HORZSIZE - Width, in millimeters, of the physical screen.
    DC_VERTSIZE - Height, in millimeters, of the physical screen.
    DC_HORZRES - Width, in pixels, of the screen.
    DC_VERTRES - Height, in raster lines, of the screen.
    DC_LOGPIXELSX - Number of pixels per logical inch along the screen width.
    DC_LOGPIXELSY - Number of pixels per logical inch along the screen height.
    DC_BITSPIXEL - Number of adjacent color bits for each pixel.
    DC_PLANES - Number of color planes.
    DC_NUMBRUSHES - Number of device-specific brushes.
    DC_NUMPENS - Number of device-specific pens.
    DC_NUMFONTS - Number of device-specific fonts.
    DC_NUMCOLORS - Number of entries in the device’s color table, if the device has a color depth of no more than 8 bits per pixel. For devices with greater color depths, -1 is returned.
    DC_ASPECTX - Relative width of a device pixel used for line drawing.
    DC_ASPECTY - Relative height of a device pixel used for line drawing.
    DC_ASPECTXY - Diagonal width of the device pixel used for line drawing.

    See blitzsys.bb file for other constants and/or the GetDeviceCaps() command in the win32 API docs

  • RETURNS:
    Specific caps you requested. See the GetDeviceCaps() command in the win32 API docs (wingdi).
  • EXAMPLE:
    See example024.bb
  • BUGS:
    None Known.

Return To Index
Problems with this command or bugs? EMail me at: mailto:loki.sd@blueyonder.co.uk

Section Last Updated: Monday, February 4, 2002 2:33 PM GMT

All materials used in this help, related sources and binaries are (C)opyright Rob Hutchinson, Joseph Cox and Tarropithium Software 2002. All rights reserved. All software is provided without warranty unless otherwise stated.
Tarropithium Software or the authors will not be held liable for any damage or data loss that may occur during the application of this software. Use it at your own risk!