Click or drag to resize
ReaderWmfGetFromClipboard Method
Creates metafile from clipboard (if available) and converts it into Image with elements as Drawings (DrawingGeometry, EllipseGeometry, GlyphRunDrawing etc.).

Namespace: Ab2d
Assembly: Ab2d.ReaderWmf (in Ab2d.ReaderWmf.dll) Version: 7.1.5512.1040
Syntax
C#
public Viewbox GetFromClipboard()

Return Value

Type: Viewbox
Viewbox with Shape objects from clipboard or null if metafile is not available.
Remarks

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 .

See Also