Click or drag to resize
ReaderWmf Methods

The ReaderWmf type exposes the following members.

Methods
  NameDescription
Public methodDispose
Dispose
Public methodGetFromClipboard
Creates metafile from clipboard (if available) and converts it into Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).
Public methodGetFromHemf
Creates metafile from hemf (handle to metafile) and converts it into Viewbox.
Public methodGetGeometryFromClipboard
Creates metafile from clipboard (if available) and converts it into Viewbox with elements as Shapes (Path, Ellipse, Polyline, etc.) and TextBlocks (for texts).
Public methodGetGeometryFromClipboard(GeometrySettings)
Creates metafile from clipboard (if available) and converts it into Viewbox with elements as Shapes (Path, Ellipse, Polyline, etc.) and TextBlocks (for texts).
Public methodGetGeometryFromHemf
Creates metafile from hemf (handle to metafile) and converts it into Drawing.
Public methodGetSize
Returns the size of the read metafile in the currently used metafile units.
Public methodGetSize(MetafileUnits)
Returns the size of the read metafile in the units specified as the method parameter.
Public methodCode exampleGetXaml
Gets xaml of the last read metafile with the default setting for WPF.
Public methodCode exampleGetXaml(BaseXamlWriterSettings)
Gets xaml of the last read metafile.
Public methodIsClipboardMetafileAvailable
Checks if there is a metafile data available on the clipboard and returns true in this case. Otherwise returns false.
Public methodCode exampleRead(Stream)
Reads metafile (emf or wmf) from stream and returns System.Windows.Controls.Viewbox with elements as Shapes (Path, Ellipse, Polyline, etc.) and TextBlocks (for texts).
Public methodCode exampleRead(String)
Reads metafile (emf or wmf) and returns System.Windows.Controls.Viewbox with elements as Shapes (Path, Ellipse, Polyline, etc.) and TextBlocks (for texts).
Public methodCode exampleReadGeometry(Stream)
Reads metafile (emf or wmf) from fileName and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.) with no geometry optimization.
Public methodCode exampleReadGeometry(String)
Reads metafile (emf or wmf) from fileName and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.) with no geometry optimization.
Public methodCode exampleReadGeometry(Stream, GeometrySettings)
Reads metafile (emf or wmf) from fileName and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).
Public methodCode exampleReadGeometry(String, GeometrySettings)
Reads metafile (emf or wmf) from fileName and returns System.Windows.Controls.Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).
Public methodTransform
Transform method transforms all the coordinates, sizes and other values in the last read Viewbox with using transformation.
Top
See Also