Wrongly filled EMF file
#3
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.
Andrej Benedik
  


Messages In This Thread
Wrongly filled EMF file - by m246246 - 06-13-2017, 02:19 PM
RE: Wrongly filled EMF file - by m246246 - 06-14-2017, 03:17 AM
RE: Wrongly filled EMF file - by abenedik - 06-14-2017, 09:41 PM
RE: Wrongly filled EMF file - by m246246 - 06-15-2017, 04:56 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)