EMF with forced smoothing

Our program should generate vector graphics, and for this we chose EMF. However, it seems that other programs make these images un smooth. I found that the SVG format has a flag indicating that some / all objects should be smoothed.

Is there any flag or command inside the EMF format to indicate that we want to have anti-aliasing? If so, how do I generate this command using the System.Drawing.Imaging.Metafile class?

Thanks.

+4
vector-graphics antialiasing
source share
1 answer

EMF file is a list of GDI commands. Thus, it will not be anti-aliased, even if under GDI + you place a call to SmoothingMode () before drawing. You will need to list the GDI commands and then translate them into the GDI + commands.

In Vista / Seven, you can use the GDI + 1.1 function named GdipConvertToEmfPlus / ConvertToEmfPlus. If you want your program to work with XP, you must write your own enumeration, and then switch to GDI + commands. We did this in Delphi , maybe the source code can help you.

+11
source share

All Articles