06-14-2017, 02:58 AM
(This post was last modified: 06-15-2017, 02:20 AM by m246246.
Edit Reason: remove unintended url link
)
Attatchd emf (sss.emf) is made by Inkscape 0.92, in which I draw 1 ellipse and 1 spiral. You can see red ellipse and olive spiral in Paint and other applcations. However nothings are shown on screen from the rendered result from ReadGeometry().
When I see the contents via GetXaml(), it look as the following:
<!-- Converted from metafile with Ab2d.ReaderWmf. See www.ab4d.com for more WPF and Silverlight tools. -->
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform">
<Image.Resources>
</Image.Resources>
<Image.Source>
<DrawingImage xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" PresentationOptions:Freeze="True">
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Geometry="F1M323,133z">
<GeometryDrawing.Pen>
<Pen Brush="Red" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Geometry="F1M508,133">
<GeometryDrawing.Pen>
<Pen Brush="Olive" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
I'm not sure but it looks value of the Geometry property is too short. (The version of ReaderWmf is 7.2.5960.1045.)
Best Wishes,
When I see the contents via GetXaml(), it look as the following:
<!-- Converted from metafile with Ab2d.ReaderWmf. See www.ab4d.com for more WPF and Silverlight tools. -->
<Image xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Stretch="Uniform">
<Image.Resources>
</Image.Resources>
<Image.Source>
<DrawingImage xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" PresentationOptions:Freeze="True">
<DrawingImage.Drawing>
<DrawingGroup>
<GeometryDrawing Geometry="F1M323,133z">
<GeometryDrawing.Pen>
<Pen Brush="Red" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Geometry="F1M508,133">
<GeometryDrawing.Pen>
<Pen Brush="Olive" Thickness="3" StartLineCap="Flat" EndLineCap="Flat" DashCap="Flat" LineJoin="Miter" MiterLimit="10"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingGroup>
</DrawingImage.Drawing>
</DrawingImage>
</Image.Source>
</Image>
I'm not sure but it looks value of the Geometry property is too short. (The version of ReaderWmf is 7.2.5960.1045.)
Best Wishes,