Nevron .NET Vision
Chart for .NET / User's Guide / Visual Effects / Antialiasing

In This Topic
    Antialiasing
    In This Topic

    OpenGL has built-in capabilities to antialias lines and points and Nevron Chart for .NET takes advantage of this. By default the chart will always antialias lines and points which greatly improves the quality of the generated chart as the user will not see jagged lines. The following images show the visual effect of antialiasing:

    Antialiasing is Off Antialiasing is On

    Sometimes however you may wish to disable this feature for several reasons:

    - antialiasing slows down the rendering speed (although not much) which may be undesirable especially when you're building high performance or real time charting applications.

    - you may wish to disable the antialiasing when you use jittering because basically there is no point of using two antialiasing effects together.

    The ShapeRenderingMode property of the NSettings object controls whether the control should use antialiasing or not. The following line of code turns off the antialiasing:

    C#
    Copy Code
    chartControl.Settings.SmoothingMode = SmoothingMode.AntiAlias;
    
    Visual Basic
    Copy Code
    chartControl.Settings.SmoothingMode = SmoothingMode.AntiAlias
    
     Related Examples
    Windows forms: Special Visual Effects\Antialiasing
    See Also