Click to See Complete Forum and Search --> : Transparent Background Issue


an_raj
August 8th, 2007, 06:23 AM
I'm using a windows PCL-XL system printer driver with plug-in. I have drawn a watermark text on the blank page. After that when I'm trying to write some text on that page , watermark is become in-visible for the whole rectangle where my text is drawn and visible out side the text region but I want it in such a way that water mark is visible as a transparent background (same as MS word Watermark) for whole page i.e. even in the area where text is written.
I have Drvtextout() hooked from Unidrv.
Can any one please let me know how can I do that by changing the Drvtextout() function parameter.
I have modified the MIX value of DrvtextOut() :
mix = mix & 0xFFFF00FF; // make the ROP for bkground to 0 keeping all same
mix = mix | 0x00000400; // Make ROP for bkground to R2_NOP
prclOpaque = NULL;

But no help.

Pls. help.

ani_raj

an_raj
August 9th, 2007, 02:39 AM
Pls. any one reply . I need this badly.

JVene
August 11th, 2007, 03:07 AM
I had to search to figure out what PCL-XL means, I'm not all that proud to admit.

Does this suggest you're not using Windows, or if you are, that you're not using the standard GDI for producing the printout?

If you're writing directly to PCL-XL language, I'd have to study that to understand why the background is being blocked out by the rectangular region where text appears, and it sounds like you've considered the puzzle with the raster operations. Perhaps there's other text output functions to search for - HP has been such a standard for so long I hesitate to believe the language doesn't support what you want to do (but I'm a little more familiar with HPGL2 than PCX-XL).