I am using the WPF build of PDFSharp, version 1.32.2608.0.
I am trying to draw transparent text over the top of an image (over the top of an image of text, so that the user can select the text).
I tried this:
Code:
gfx.DrawString(text, font, XBrushes.Transparent, x, y);
but the drawn text was white and clearly visible over the text in the image.
I tried creating my own brush with full transparency:
Code:
new XSolidBrush(XColor.FromArgb(0,255,255,255)
same result, if I changed the custom brush to a color other than white, it just draws the color and ignores the transparency value. I also tried using 255 as the transparency value just in case, same result.
How do I draw ACTUAL transparent text? Or some workaround that accomplishes what I said at the beginning?
Any help is appreciated.