View previous topic :: View next topic |
Author |
Message |
alt126
Joined: 23 Feb 2009 Posts: 3
|
Posted: Mon Feb 23, 2009 3:58 pm Post subject: Transparency!! |
|
|
Hi everybody...i am trying to covert to pdf from a component that i have to draw...
I am exporting some shapes to a png picture file and after trying to importing into the pdf file....but the images are non transparent!!!
How can i get it??
The pictures files are png and are transparents!!!
I am using this:
Code: | document = new PdfDocument();
page = document.AddPage();
XGraphics gfx = XGraphics.FromPdfPage(page, XGraphicsPdfPageOptions.Append);
XImage image = XImage.FromFile(path);
gfx.DrawImage(image, new XRect(posx, posy, posw, posh)); |
Thanks |
|
Back to top |
|
|
alt126
Joined: 23 Feb 2009 Posts: 3
|
Posted: Mon Feb 23, 2009 4:10 pm Post subject: |
|
|
Well..i think my problem is that i need to put one image over other...i mean...i import one image that cover all document page...as a background and over it i need to import other images but need to be transparent but i find out that the images are imported as a white rectangle...
thanks |
|
Back to top |
|
|
Thomas Hoevel
Joined: 16 Oct 2006 Posts: 387 Location: Cologne, Germany
|
Posted: Tue Feb 24, 2009 8:08 am Post subject: |
|
|
Make sure to set PDF version to 1.4 (or higher) if you use images with transparency. (1.4 is the default with PDFsharp 1.2). _________________ Regards
Thomas Hoevel
PDFsharp Team |
|
Back to top |
|
|
alt126
Joined: 23 Feb 2009 Posts: 3
|
Posted: Tue Feb 24, 2009 9:46 am Post subject: |
|
|
well, when i show the document.Version...is 14...so i think that's the version!!
The dll file is PdfSharp.dll and the version is 1.2.1269.0
But is it possible to show one image over other without white spaces between??
Can anyone send me an example or something...? i can even send you my images to test it!!!
Many thanks |
|
Back to top |
|
|
|