FreeImage.NET Class Library Reference
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: BooleanReturns true on success, false on failure.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | bitmap or filename is null. |
ArgumentException | The bitmaps pixelformat is invalid. |
See Also