ReaderWmfGetFromClipboard Method |
Namespace: Ab2d
public Viewbox GetFromClipboard()
The GetFromClipboard method reads the metafile from clipboard and converts it into Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).
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.
To read metafile from clipboard as Geometry objects it is possible to use GetGeometryFromClipboard or GetGeometryFromClipboard(GeometrySettings) methods.
It is recommended to call IsClipboardMetafileAvailable method before calling GetFromClipboard to check if metafile is available on the clipboard.
If metafile is not available than GetFromClipboard returns null.
If the clipboard cannot be read the method throws an .