How To Use QUERYDIBSUPPORT in Printer Driver

ID: Q151892

The information in this article applies to:

SUMMARY

A printer driver should set flags based on the drivers capability for the DIB when it gets calls to the Control function with the QUERYDIBSUPPORT escape.

MORE INFORMATION

When a printer driver gets call to the Control function with the QUERYDIBSUPPORT Escape, the lpInData parameter points to the BITMAPINFO structure and the lpOutData points to LPINT. Based on the capabilities of the driver, it is expected to set the following flags:

   QDI_SETDIBITS    Device can convert DIB to bitmap
   QDI_GETDIBITS    Device can convert bitmap to DIB
   QDI_DIBTOSCREEN  Device can draw DIB
   QDI_STRETCHDIB   Device can stretch DIB

The driver uses the biBitCount, biCompression, and biPlanes to determine its capability with respect to DIB support. Once the capabilities are determined, it then sets the flags above appropriately. These flags are documented in the Windows SDK in \MSTOOLS\INCLUDE\WINGDI.H.

Additional query words: QUERYDIBSUPPORT

Keywords          : kbDDK kbPrinting 
Version           : 4.00
Platform          : WINDOWS

Last Reviewed: June 26, 1998