ImageExtensionsSaveAsBmp Method (Image, String)

KGy SOFT Drawing Libraries Help
Saves the specified image to the specified file using the built-in BMP encoder if available in the current operating system. Unlike the Save(Stream, ImageFormat) method, this one supports every PixelFormat.
See the Remarks section of the SaveAsBmp(Image, Stream) overload for details and an example.

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

public static void SaveAsBmp(
	this Image image,
	string fileName
)

Parameters

image
Type: System.DrawingImage
The image to save. If contains multiple images, then only the current frame will be saved.
fileName
Type: SystemString
The name of the file to which to save the image. The directory of the specified path is created if it does not exist.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Image. 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