Page 1 of 1

Export of vector format EMF related to resolution???

Posted: Sat Mar 05, 2005 11:07 am
by 9523802
Hi all!

As far as I know the EMF type is a real vector format. Why the output quality of an EMF in TeeChart is depending on the pixel resolution?

E.g.: line series polygon, many points, the polygon is not longer polygon-point to polygon-point, the polygon is changed to pixel-line to pixel-line (based on the "EMF-resolution" in export options)???

I've posted the related pictures in the steema newsgroup, posting: "printing ax-v7 in .NET ...".
please find attached three files concerning my EMF-Question.

I plot 2 sections, each consisting of 3 arches.
The arches are a simple polygon in 2D, that means simple point-point
straight line.

- chart1.tif is plotted based on the pixel sizes.
- chart1.emf you can see the polygon points
- chart2.emf, same as chart1.emf, but without polygon points

My questions:
a) if you look on the emf-large radius arches (wide span arches): near x=0
the polygon is a little bit oscillating??? (distance between blue and red,
the distance should be constant). This behaviour I cannot see on the .tif.
b) if you look on the chart2.emf and the small span arches. Though this is
an .emf there is no straight connection between the polygonal points. Though
this is a vector format the lines follow a kind of grid???
c) Is the emf output based on the pixel resultion of the image? I know
outputs of different software where this is not (emf=resultion independent).

My problem:
Poor quality of emf output.

Thanks in advance
I think the EMF should not be pixel dependent???

Best regards

Alex

Posted: Thu Mar 10, 2005 4:28 pm
by Marc
Hello Alex,

TeeChart's EMF export uses Microsoft's Metafile format.

eg.

Code: Select all

System.Drawing.Imaging.Metafile
using

Code: Select all

System.Drawing.Imaging.EmfType.EmfOnly
We will probably introduce EMF+ support for TeeChart for .NET v2. Older WMF format, now not supported in TeeChart for .NET, is superseded by the current EMF format.

Testing the format confirms that vectors, here arcs and lines in the example charts, are being correctly rendered independently of the original pixel size of the image. I posted a few images to compare and portray that in answer to your attachment newsgroup post.

The example I sent includes the BubbleSeries, an example that plots a true arc and LineSeries that plots a series of straight vectors. Please zoom in on the images to view them (Windows default viewer for emf will respect its vector format) and you will notice the difference between the pixel PNG format and the vector EMF output.

For more information on Microsoft's emf format please see their documentation on the System.Drawing.Imaging.Metafile class.

I hope that may be of help.

Regards,
Marc Meumann

Posted: Fri Mar 11, 2005 9:32 am
by 9523802
Hi Marc,

thanks for the background!
I hope that may be of help.
Yes, it is. By the way, do you have a release date for TeeChart .NET v2?

Thanks!

Alex

Posted: Fri Mar 11, 2005 9:43 am
by narcis
Hi Alex,
By the way, do you have a release date for TeeChart .NET v2?
It is expected to be released by the end of this year's first quarter.