views:

185

answers:

1

Hello,

Our program needs to generate vector graphics, and we chose EMF for that. However, it seems that other programs render these images non-antialiased. I found that SVG format does have a flag to indicate that some/all objects should be antialiased.

Is there any kind of flag or command inside the EMF format to indicate that we want to have antialiasing? If so, how to generate that command using System.Drawing.Imaging.Metafile class?

Thank you.

+2  A: 

An EMF is simply a list of GDI / GDI+ commands. The easiest way to get antialiasing is to turn it on when you're creating the list of commands; for example, set Graphics.SmoothingMode to AntiAlias before drawing anything to your metafile.

Josh Kelley
Haha, thank you. I was looking for a method with "aliasing" in name... Seems I overlooked this one.
liori
Well, it seems this doesn't change much. I found that programs simply ignore this flag. But thank you for pointing this.
liori