MetafileExtensionsSaveAsWmf Method (Metafile, Stream)

KGy SOFT Drawing Libraries Help
Saves the specified metafile as a WMF (Windows Metafile) using Windows API.

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.1.0
Syntax

public static void SaveAsWmf(
	this Metafile metafile,
	Stream stream
)

Parameters

metafile
Type: System.Drawing.ImagingMetafile
The Metafile instance to save.
stream
Type: System.IOStream
The stream to save the image into.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Metafile. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
ArgumentNullExceptionmetafile or stream is .
PlatformNotSupportedExceptionThis method is supported on Windows only.
Remarks

Note Note
This method is supported on Windows only.
See Also

Reference