Page 1 of 1
Rendering 1 / 2-bit graphics / Aliasing
Posted: Thu Nov 20, 2025 8:53 am
by Tobias
It would be nice to be able to render images for electronic shelf labels with Reports.NET. For these ePaper-Displays the graphics usually are b/w or b/w/r/y. Is there a way to render such graphics WITHOUT anti-aliasing?
Re: Rendering 1 / 2-bit graphics / Aliasing
Posted: Thu Nov 20, 2025 7:09 pm
by Lech Kulikowski
Hello,
Please try to set the Smoothing=false property for the Image component.
Thank you.
Re: Rendering 1 / 2-bit graphics / Aliasing
Posted: Thu Nov 20, 2025 8:23 pm
by Tobias
Thanks, but you got me wrong. My question was not about rendering an image within an StiReport, but to render it AS an image WITHOUT antialiasing.
If I render render a StiReport as e.g. a PNG, the text, borders etc are all antialiased - this does not work very well with 2 or 4 color ePaper displays. So my question is, if the antialising can be disabled when exporting a StiReport as PNG.
What I haven't tried yet is to export as an SVG and then use SkiaSharp to render the image (which allows to disable antialisaing). But I guess this would require some post processing of the SVG to disable fill/stroke overrides that might override the alisaing controlled by Skia.
Re: Rendering 1 / 2-bit graphics / Aliasing
Posted: Mon Nov 24, 2025 9:51 pm
by Lech Kulikowski
Hello,
Please try to use the following option:
StiOptions.Engine.DisableAntialiasingInPainters = true;
Thank you.
Re: Rendering 1 / 2-bit graphics / Aliasing
Posted: Mon Dec 01, 2025 10:48 am
by Tobias
Thanks! This actually works at least for text and simple graphics. Flow chart symbols are still antialiased and there are probably other elements that should be avoided.
Re: Rendering 1 / 2-bit graphics / Aliasing
Posted: Mon Dec 01, 2025 8:50 pm
by Lech Kulikowski
Hello,
Thank you for the information. We have added this issue in our to-do list.
Thank you.
#18924
Re: Rendering 1 / 2-bit graphics / Aliasing
Posted: Fri Dec 19, 2025 9:18 pm
by Lech Kulikowski
Hello,
The issue is fixed. Please check the next build 2026.1.2
Thank you.