[PATCH] printing of transparent images

Lars Knoll lars at trolltech.com
Thu Jul 11 08:09:02 BST 2002


> Hi!
>
> Printing web sites with black&white images, where white is transparent
> results in black on black print outs. As an example check
> http://verein.lst.de/~coolo/printout.html
>
> My suggested patch follows. It hard codes the color to print for
> transparent pixels to white. David is working on an alternative solution,
> but that would require bigger changes in QPSPrinter as it would need to
> generate PS level 3 to get transparancy in the generated PS. The patch
> works for me, but I'm open for suggestions :)

Hmmm... we have a hack like that in QPSPrinter already. I'm wondering why it 
fails.

Concerning the masked image printing, I have it working in the postscript 
driver of Qt-3.1. As the change is a bit bigger, I didn't want to commit it 
to the 3.0 codebase. If anyone is interested in testing it, feel free to ask 
me for the code.

Cheers,
Lars






More information about the kfm-devel mailing list