INFO: UNIDRV/UNITOOL-Supported Color Models

Last reviewed: July 16, 1997
Article ID: Q169600
The information in this article applies to:
  • Windows 95 Device Driver Kit (DDK), version 4.0

SUMMARY

UNIDRV/UNITOOL supports a number of color models that can be used by printer minidriver developers.

MORE INFORMATION

UNIDRV/UNITOOL supports two different type of color models: planar and pixel.

Until recently, most color printers used planar models to represent color images. The planar model support is provided by DMCOLOR.DLL which UNIDRV/UNITOOL communicates with to render planar printer output. DMCOLOR.DLL supports only RGB planar format (UNIDRV's color bitmap buffer is three planes; Red, Green, and Blue, each with one bit-per-pixel).

In order to support the pixel model, you must provide an fnOEMDump callback function in your minidriver. UNIDRV can render images into a 4, 8, 16, 24, or 32 bits-per-pixel DIB format bitmap buffer and then pass the buffer to the callback function. The callback function sends the pixel color data to the printer. The Win95 DIB engine (DIBENG.DLL) is responsible for rendering the printer data into a pixel format.


Keywords : kbprint kbinfo
Version : 4.0
Platform : Win95


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.