metafile

How to enable anti-aliasing when rendering WMF to BitMap in C#/WPF/WinForms?

若如初见. 提交于 2019-11-27 18:58:36
问题 Why won't lines etc be anti-aliased when doing this? using (var myGraphics = Graphics.FromImage(bitmap)) { myGraphics.CompositingQuality = CompositingQuality.HighQuality; myGraphics.SmoothingMode = SmoothingMode.HighQuality; myGraphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit; myGraphics.Clear(backgroundColor); myGraphics.EnumerateMetafile(m_metafile, new Point(0, 0), m_metafileDelegate); } The delegate function looks like this: private bool MetafileCallback(EmfPlusRecordType