Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XGraphics.DrawImage() PNG image without transparency #187

Open
NintendoPlayer opened this issue Oct 18, 2024 · 3 comments
Open

XGraphics.DrawImage() PNG image without transparency #187

NintendoPlayer opened this issue Oct 18, 2024 · 3 comments

Comments

@NintendoPlayer
Copy link

Hi.

I upgraded my project to NET.8 and installed 6.2.0-preview-1. Besides some changes, everything works fine. I'm having a weird issue with this version.

I load a png image from a database, then I save it to a memorystream. I save it to an XImage object and then draw it to the last page of the pdf.

With the old 1.51 library, the png retained the transparency. Now the png draws with white background thus hidding the objects behind it.

@ThomasHoevel
Copy link
Member

Would be good to know which version of PDFsharp you are using and would be good to have the PNG file for testing.

https://docs.pdfsharp.net/General/Issue-Reporting.html

@NintendoPlayer
Copy link
Author

Hi! Version is 6.2.0-preview 1, is on the first message About the png file is a signature so I will try with another file to see if the issue persist.

@ThomasHoevel
Copy link
Member

Would be good to know which version of PDFsharp you are using: Core, GDI, or WPF.
But that only matters if we also get the PNG file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants