Note
When targeting .NET 7.0 or later versions this class is supported on Windows only.
public static class MetafileExtensions<ExtensionAttribute>
Public NotInheritable Class MetafileExtensions[ExtensionAttribute]
public ref class MetafileExtensions abstract sealed[<AbstractClassAttribute>]
[<SealedAttribute>]
[<ExtensionAttribute>]
type MetafileExtensions = class end| Save(Metafile, Stream) | Saves a Metafile instance into a Stream. Actual format is selected by the raw format of the metafile. |
| Save(Metafile, Stream, Boolean) | Saves a Metafile instance into a Stream using the required format. |
| SaveAsEmf(Metafile, Stream) | Saves the specified metafile as an EMF (Enhanced Metafile) using Windows API. |
| SaveAsEmf(Metafile, String) | Saves the specified metafile to the specified file as an EMF (Enhanced Metafile) using Windows API. |
| SaveAsWmf(Metafile, Stream) | Saves the specified metafile as a WMF (Windows Metafile) using Windows API. |
| SaveAsWmf(Metafile, String) | Saves the specified metafile to the specified file as a WMF (Windows Metafile) using Windows API. |
| ToBitmap(Metafile, Size, Boolean) | Creates a Bitmap of a Metafile instance specified in the metafile parameter. |
| ToBitmap(Metafile, Size, Boolean, Boolean) | Creates a Bitmap of a Metafile instance specified in the metafile parameter. |