Note
This method is supported on Windows only.
public static void Save(
this Metafile metafile,
Stream stream,
bool forceWmfFormat
)<ExtensionAttribute>
Public Shared Sub Save (
metafile As Metafile,
stream As Stream,
forceWmfFormat As Boolean
)public:
[ExtensionAttribute]
static void Save(
Metafile^ metafile,
Stream^ stream,
bool forceWmfFormat
)[<ExtensionAttribute>]
static member Save :
metafile : Metafile *
stream : Stream *
forceWmfFormat : bool -> unit Setting forceWmfFormat to forces to use Window Metafile Format (WMF) even for Enhanced Metafiles (EMF). It may help providing compatibility, but the operation may throw an ArgumentException if the conversion cannot be performed (e.g. the metafile is too large).
| ArgumentException | metafile is an EMF that cannot be saved as WMF (e.g. too large size). |
| PlatformNotSupportedException | This method is supported on Windows only. |