FreeImage.SaveEx Method (FIBITMAP, String, FREE_IMAGE_FORMAT)

FreeImage.NET

FreeImageSaveEx Method (FIBITMAP, String, FREE_IMAGE_FORMAT)
Saves a previously loaded FreeImage bitmap to a file. In case the loading format is FIF_UNKNOWN the format is taken off the filename. If no suitable format was found false will be returned.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SaveEx(
	FIBITMAP dib,
	string filename,
	FREE_IMAGE_FORMAT format
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
filename
Type: SystemString
The complete name of the file to save to. The extension will be corrected if it is no valid extension for the selected format or if no extension was specified.
format
Type: FreeImageAPIFREE_IMAGE_FORMAT
Format of the image. If the format should be taken from the filename use FIF_UNKNOWN.

Return Value

Type: Boolean
Returns true on success, false on failure.
Exceptions
ExceptionCondition
ArgumentNullExceptiondib or filename is null.
See Also