Transparency issue

I am generating documents for printer from a program done with Visual C++ 6.0

Basically
I am putting a bitmap as water mark in the document, and then I draw
another bitmap (a graphic with lot of white parts) in top of the water mark,
using basic GDI calls with StretchDIBits with the flag SRCAND to mantain
transparency. I load the bitmap from file and convert it to Device
independant bitmaps, and do the StretchDIBits to the printers device
context.

If I send the document to my HP printer, I’ve got the
effect desired, in paper. However if I send the document to PDFCreator
the second bitmap is draw in top of the water mark, opaque, without any
transparency.

Is there something I might touch in the settings
when printing to obtain the desired transparency or is it a non trivial
problem?

Hi,

this is a non-trivial problem, with PostScript not being able to handle transparency properly (usually it gets emulated by a raster).
Is your HP printer a PS printer? In that case you can try using its PSCRIPT5.DLL.

regards,

Robin

I see. Thank you for your answer.

Since only two bitmaps are involved I think I will handle the transparency ‘on the fly’ joining both in a bigger bitmap before sending it to the printer.