Category / Section
Modifying the TextRendering setting to Getting High quality Image
1 min read
Modifying the TextRendering Setting to Getting High quality Image
To improve the character appearance and to avoid anti-aliasing troubles while exporting diagram as image, modify the Textrendering style as "SingleBitPerPixelGridFit".
The below code snippet used set the TextRendering style as “SingleBitPerPixelGridFit” format.
[C#]
diagram1.Model.RenderingStyle.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;
[VB]
diagram1.Model.RenderingStyle.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit;