I've noticed that text was not looking so great. To improve quality you could add two methods under public class TextStyle or some other class:
public static void ConfigureForText(Graphics gr)
{
gr.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
// ClearTypeGridFit will make text look much better.
gr.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit;
gr.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
gr.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
gr.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
}
public static void ConfigureForShapes(Graphics gr)
{
gr.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None;
}
...and then consistently drawing switch style in the code by calling these methods:
Hi Pavel,
Really great control.
I've noticed that text was not looking so great. To improve quality you could add two methods under public class TextStyle or some other class:
...and then consistently drawing switch style in the code by calling these methods:
Kind Regards, Evaldas Jocys