Friday, January 23, 2015

System.Drawing - How to DrawString in high quality format?


g is a System.Drawing.Graphics object

g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias
g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High
g.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAliasGridFit


No comments: