C#:Smoothing

From Progzoo

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

Smoothing

See Graphics.SmoothingMode from the MSDN library.

The other options are AntiAlias Default HighQuality HighSpeed Invalid None

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

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.

[Font] [Default] [Show] [Resize] [History] [Profile]