MetafileExtensions.Save Method (Metafile, Stream, Boolean)

KGy SOFT Drawing Libraries

MetafileExtensionsSave Method (Metafile, Stream, Boolean) KGy SOFT Drawing Libraries Help
Saves a Metafile instance into a Stream using the required format.

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

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 

Parameters

metafile
Type: System.Drawing.ImagingMetafile
The Metafile instance to save.
stream
Type: System.IOStream
The Stream into the metafile should be saved.
forceWmfFormat
Type: SystemBoolean
When , forces to use the Windows Metafile Format (WMF), even if the metafile itself is encoded by Enhanced Metafile Format (EMF). When , uses the appropriate format automatically.

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).
See Also

Reference