FreeImage.NET Class Library Reference
FreeImageBitmapSave Method (Stream, FREE_IMAGE_FORMAT, FREE_IMAGE_SAVE_FLAGS) |
Saves this FreeImageBitmap to the specified stream in the specified format
using the specified saving flags.
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, FREE_IMAGE_SAVE_FLAGS flags )
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. - flags
- Type: FreeImageAPIFREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | stream is a null reference. |
Exception | Saving the image failed. |
See Also