FreeImage.SaveBitmap Method (Bitmap, String)

FreeImage.NET

FreeImageSaveBitmap Method (Bitmap, String)
Saves a .NET Bitmap to a file.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SaveBitmap(
	Bitmap bitmap,
	string filename
)

Parameters

bitmap
Type: System.DrawingBitmap
The .NET Bitmap to save.
filename
Type: SystemString
Name of the file to save to.

Return Value

Type: Boolean
Returns true on success, false on failure.
Exceptions
ExceptionCondition
ArgumentNullExceptionbitmap or filename is null.
ArgumentException The bitmaps pixelformat is invalid.
See Also