Saves this FreeImageBitmap to the specified stream in the specified format using the specified saving flags.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public void Save(
	Stream stream,
	FREE_IMAGE_FORMAT format,
	FREE_IMAGE_SAVE_FLAGS flags
)
Visual Basic (Declaration)
Public Sub Save ( _
	stream As Stream, _
	format As FREE_IMAGE_FORMAT, _
	flags As FREE_IMAGE_SAVE_FLAGS _
)
Visual C++
public:
void Save(
	Stream^ stream, 
	FREE_IMAGE_FORMAT format, 
	FREE_IMAGE_SAVE_FLAGS flags
)

Parameters

stream
Type: System.IO..::.Stream
The stream where this FreeImageBitmap will be saved.
format
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
An FREE_IMAGE_FORMAT that specifies the format of the saved image.
flags
Type: FreeImageAPI..::.FREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.

Exceptions

ExceptionCondition
System..::.ArgumentNullException stream is a null reference.
System..::.ExceptionSaving the image failed.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also