MetafileExtensions Class

Contains extension methods for the Metafile type.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 7.0.0
C#
public static class MetafileExtensions
Inheritance
Object    MetafileExtensions

Remarks

  Note

When targeting .NET 7.0 or later versions this class is supported on Windows only.

Methods

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.

See Also