Zoo tutorials: [ SQL | Linux | XML ]
ProgZoo: [ Java | C# | VB | C++ | Perl ]
Log in

A Gentle Introduction to
C# Programming

Smoothing

 

Graphics

Smoothing

We can improve our images by smoothing. This reduces the ugly "pixelated" quality of the images.

1. [ C# ] Smoothing


Big

The first line is drawn without smoothing, the second is smoothed.

We set the smoothing on - after this all the drawing operations are slower, but better.

See Graphics.SmoothingMode from the MSDN library.

The other options are AntiAlias Default HighQuality HighSpeed Invalid None

  g.SmoothingMode =
    System.Drawing.Drawing2D.SmoothingMode.AntiAlias;