06-13-2017, 02:19 PM (This post was last modified: 06-14-2017, 02:44 AM by m246246.
Edit Reason: Add dll version.
)
I tried to render some EMF files with ReadGeometry() method. File version of Ab2d.ReaderWmf.dll is 7.2.5960.1045.
Attached file (yy.eml) consists from 2 overlapping drawings, both are filled in green.
It is displayed in Paint, Powerpoint, Libreoffice Draw etc as expected, most inner parts are filled.
However rendered result is different, some parts are not filled.
So far I have tried both GeometrySettings.FullOptimization and GeometrySettings.NoOptimization but the result is same.
I also attached capture image of expected result (expected.png) and rendered result (result.png).
The simple test application was:
var readerWmf = new Ab2d.ReaderWmf();
var image = r.ReadGeometry(@"C:\Users\Andrej\Downloads\yy.emf");
RootGrid.Children.Add(image);
But the problem happened when the geometries are combined. With this option it is not possible to correctly generate the xaml.
I confirmed it shows as expected as long as CombineGeometries is unset. (Sorry, I had checked xaml of other instance that are not passed to viewer.) Thank you for your support.