FreeImageBitmap.Save Method (String, FREE_IMAGE_FORMAT)

FreeImage.NET

FreeImageBitmapSave Method (String, FREE_IMAGE_FORMAT)
Saves this FreeImageBitmap to the specified file in the specified format.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void Save(
	string filename,
	FREE_IMAGE_FORMAT format
)

Parameters

filename
Type: SystemString
A string that contains the name of the file to which to save this FreeImageBitmap.
format
Type: FreeImageAPIFREE_IMAGE_FORMAT
An FREE_IMAGE_FORMAT that specifies the format of the saved image.
Exceptions
ExceptionCondition
ArgumentExceptionfilename is null or empty.
ExceptionSaving the image failed.
See Also