PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
Render colored dots in tables cells http://forum.pdfsharp.de/viewtopic.php?f=2&t=4207 |
Page 1 of 1 |
Author: | emaborsa [ Thu Nov 26, 2020 11:22 pm ] |
Post subject: | Render colored dots in tables cells |
I have to port rdlc reports from .NET to CORE. Since rdlc are not supported yet, I tried to recreate them using Migradoc. The original one: Attachment: dots_or.PNG [ 3.83 KiB | Viewed 3912 times ] My current result is the following: Attachment: dots_new.PNG [ 6.91 KiB | Viewed 3912 times ] I created png dots, converted them to base64 strings and added them using the following code: Code: cell.AddImage(base64StringVariable) Since the size of each image is very low, just 12x12 pixels, the pdf has a quite poor quality. Do you have some hint in order to improve quality? |
Author: | TH-Soft [ Fri Nov 27, 2020 6:58 am ] |
Post subject: | Re: Render colored dots in tables cells |
emaborsa wrote: Since the size of each image is very low, just 12x12 pixels, the pdf has a quite poor quality. The obvious hint: use larger images.Do you have some hint in order to improve quality? To prevent Adobe Reader from anti-aliasing the images, set "image.Interpolate = false;" for the image or disable image anti-aliasing in Adobe Reader. |
Author: | emaborsa [ Fri Nov 27, 2020 8:30 am ] |
Post subject: | Re: Render colored dots in tables cells |
Thanks. ...I apologize. Didn't see the properties Height and Width of the returned Image object. However, I can't find "image.interpolate" |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |