Hi!
I have a problem. Hope someone can help me out here.
I have a color post script printer, Tektronix Phaser 340. I am trying
to print out a 24-bit bitmap. However, it doesn't print out in color but in
gray scale. I read it somewhere that postscript printer is a 1 bit per pixel
printer and a call to GetDeviceCaps proves it. So what is the best way to
print 24-bit bitmap in color? I have tried StretchDIBits and
SetDIBitsToDevice and both of them don't work.
What is the best GDI calls to print out 24-bit bitmap to color
postscript printer in color!?
Thanks in advance!
Mark Yang
-----------------------------------------------------------------------------
email: chao...@scf.usc.edu
chy...@graphics.usc.edu
Home Page: http://asm1.usc.edu/ckyang.html
The problem is, there is no GDI call to draw on a black-and-white device in
color. Think about it; what exactly should GDI do if you try to draw in
purple on a monochrome display?
What you need is a COLOR POSTSCRIPT DRIVER. The standard system postcript
driver is monochrome. Two obvious places to look for the driver you want
would be the manufacturer, Tektronix, and the comp.os.ms-windows.setup
newsgroup. Short of writing your own graphics device driver, there is no
programming solution for what you want.
>Mark Chao-Kuang Yang wrote:
>> I have a problem. Hope someone can help me out here.
>> I have a color post script printer, Tektronix Phaser 340. I am trying
>> to print out a 24-bit bitmap. However, it doesn't print out in color but in
>> gray scale. I read it somewhere that postscript printer is a 1 bit per pixel
>> printer and a call to GetDeviceCaps proves it. So what is the best way to
>> print 24-bit bitmap in color? I have tried StretchDIBits and
>> SetDIBitsToDevice and both of them don't work.
>
>The problem is, there is no GDI call to draw on a black-and-white device in
>color. Think about it; what exactly should GDI do if you try to draw in
>purple on a monochrome display?
Providing an arbitary monochrome intensity might be better than nothing.
>What you need is a COLOR POSTSCRIPT DRIVER. The standard system postcript
>driver is monochrome.
Of course, if it passed the colours to the mono postscript device,
postscript would assign mono intensities to the colours 'cos
postscript's [a little bit] clever like that.
J/.
--
John Beardmore