Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 169600 - Last Review: February 12, 2007 - Revision: 1.2
INFO: UNIDRV/UNITOOL-Supported Color Models
This article was previously published under Q169600
UNIDRV/UNITOOL supports a number of color models that can be used by
printer minidriver developers.
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.
APPLIES TO
- Microsoft Windows 95 Driver Development Kit (DDK)
- Microsoft Windows 98 Driver Development Kit (DDK)
- Microsoft Windows Millennium Edition Driver Development Kit
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate