Closed th-joerger closed 1 month ago
Thank you very much for your valuable feedback. With the final version of PDFsharp 6.1.0, we include the Interpolate property with the MigraDoc Image class. We did not add an Interpolate parameter to any methods, but it is not needed anyway.
Great news!
We did not add an Interpolate parameter to any methods, but it is not needed anyway.
You referring to the XImage CreateXImage(string uri, bool interpolate) method in the ImageRenderer? I guess one could simply use the _image class variable directly as well, but I wanted to keep the option for voluntarily ignoring the setting, if necessary.
I was not happy with how MigraDoc was rendering small QR code pngs from ZXing in output pdfs. The solution is simple and straightforward: just deactivate interpolation for the image.
This PR exposes the PDFSharp.Drawing.Interpolate property in MigraDoc as DocumentObjectModel.Shapes.Image.Interpolate.
Test have been added. Removed a large base64 string with unknown origin and sketchy content and replaced it by a Nothing-Up-My-Sleeve-QR-String for security reasons.
Test_Image_Interpolation-WIN-CORE-6.0-109278A999_temp.pdf