ReaderWmfRead Method (String) |
Namespace: Ab2d
public Viewbox Read( string fileName )
Because Shapes are derived from the FrameworkElement class, Shape objects can be used inside panels and most controls. This means it is very simple to add events to elements, change elements properties or otherwise manipulate with elements. But for more complex images this could affect performance and can add significantly more memory consumption in your application.
For better performance it is better to use ReadGeometry method that returns elements as Drawing objects. It is also possible to further optimize the returned Drawing objects with GeometrySettings.
Viewbox sampleViewbox = myReader.Read(@"c:\mySample.wmf");