06-14-2017, 09:41 PM
I cannot reproduce your problem.
It works correctly in Paste2Xaml and in a simple application that uses ReaderWmf.
In Paste2Xaml I got the following xaml:
<Image Stretch="Uniform">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Green" Geometry="F1M807,379L630,578L407,724L322,471L308,204L569,258z"/>
<GeometryDrawing Brush="Green" Geometry="F1M889,0L544,988L1002,1092L318,299L0,643L1029,448z"/>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
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.
Cold you please check again.
It works correctly in Paste2Xaml and in a simple application that uses ReaderWmf.
In Paste2Xaml I got the following xaml:
<Image Stretch="Uniform">
<Image.Source>
<DrawingImage>
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="Green" Geometry="F1M807,379L630,578L407,724L322,471L308,204L569,258z"/>
<GeometryDrawing Brush="Green" Geometry="F1M889,0L544,988L1002,1092L318,299L0,643L1029,448z"/>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
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.
Cold you please check again.
Andrej Benedik

