Hello,

I'm having a problem using transparent colors within the graphics object of the System.Drawing.Printing.PrintDocument class. If I create two overlapping rectangles with the alpha channel of the color set to some value of transparency, the output colors are the same as setting the alpha component to not transparent, so the rectangle that is drawn second is on top of the first rectangle, completely covering that portion of the rectangle. I've tried to get transparencies to work, but I can't. The closest I've come is to set,
Code:
e.Graphics.CompositingMode = CompositingMode.SourceOver
This works, but the printout is extremely pixelated and quite ugly.

In the end, I want to be able to draw various shapes, and then overlay a transparent GIF image. The GIF is already transparent (this is done using any third party image editing program that supports transparencies), and I am 100% certain that the GIF that I'm using as an overlay is transparent.

Also, I have what I want to do working in the program within a picture box. (I know picture boxes are not really meant for drawing shapes and such, but I'm editing someone else's project, so we're stuck with a picturebox.)

I really don't understand why this isn't working.

Thanks.