It looks to me as if GetDeviceCaps(hdc, BITSPIXEL) always returns 1 if the
driver is the Microsoft Postscript Printer Driver (Pscript, implemented in
pscript5.dll). This occurs in Win2k and WinXP.

I believe that this bug is referred to in
http://support.microsoft.com/default.aspx?scid=kb;en-us;87349, although it
mentions only a couple of printer models.

Am I doing something wrong? Is there an alternate way to determine the color
depth supported by a printer?

Nolan

Re: BITSPIXEL bug in Postscript drivers by Tim

Tim
Sat Jan 15 00:25:35 CST 2005

"Nolan Capehart" <nolan.capehart@athenaamerica.com> wrote:
>
>It looks to me as if GetDeviceCaps(hdc, BITSPIXEL) always returns 1 if the
>driver is the Microsoft Postscript Printer Driver (Pscript, implemented in
>pscript5.dll). This occurs in Win2k and WinXP.

What about PLANES? Is it always 1?

Are you convinced the device in questions actually supports color?

>I believe that this bug is referred to in
>http://support.microsoft.com/default.aspx?scid=kb;en-us;87349, although it
>mentions only a couple of printer models.

It also says that it only applies to Windows 3.1. That was 12 years ago
and an entirely different code base.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc