Rendering 1 / 2-bit graphics / Aliasing

Stimulsoft Reports.NET discussion
Post Reply
Tobias
Posts: 107
Joined: Mon Nov 24, 2008 8:44 am

Rendering 1 / 2-bit graphics / Aliasing

Post 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?
Lech Kulikowski
Posts: 7510
Joined: Tue Mar 20, 2018 5:34 am

Re: Rendering 1 / 2-bit graphics / Aliasing

Post by Lech Kulikowski »

Hello,

Please try to set the Smoothing=false property for the Image component.

Thank you.
Tobias
Posts: 107
Joined: Mon Nov 24, 2008 8:44 am

Re: Rendering 1 / 2-bit graphics / Aliasing

Post 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.
Lech Kulikowski
Posts: 7510
Joined: Tue Mar 20, 2018 5:34 am

Re: Rendering 1 / 2-bit graphics / Aliasing

Post by Lech Kulikowski »

Hello,

Please try to use the following option:
StiOptions.Engine.DisableAntialiasingInPainters = true;

Thank you.
Post Reply