FreeImageBitmap.Save Method (Stream, FREE_IMAGE_FORMAT)

FreeImage.NET

FreeImageBitmapSave Method (Stream, FREE_IMAGE_FORMAT)
Saves this FreeImageBitmap to the specified stream in the specified format.

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

Parameters

stream
Type: System.IOStream
The stream where this FreeImageBitmap will be saved.
format
Type: FreeImageAPIFREE_IMAGE_FORMAT
An FREE_IMAGE_FORMAT that specifies the format of the saved image.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is a null reference.
ExceptionSaving the image failed.
See Also