xlsgen > overview > Chart anti-aliasing

Chart anti-aliasing is a mechanism in xlsgen for rendering lines and circles without seeing stairs.

xlsgen defaults to anti-aliasing level 1.

Thanks to a property at the workbook level called AntiAliasing, it is possible to set the anti-aliasing to another level.

Rendering speed depends on the level of chosen anti-aliasing. Based on a technique known as pixel sub-sampling, the higher the level, the more time it takes to render. Pick appropriately, if speed must be preserved.

Basically, to change the anti-aliasing level before rendering charts :

C++ code
workbook.AntiAliasing = xlsgen::antialiasing_level_1;

Rendering charts is a different thing than writing chart definitions in spreadsheet files (XLS, XLSX, ...). Rendering occurs when doing a print, print preview, PDF, XPS, HTML and so on.

 

xlsgen documentation. © ARsT Design all rights reserved.