FreeImage.NET Class Library Reference
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
Exception | Condition |
---|---|
ArgumentNullException | stream is a null reference. |
Exception | Saving the image failed. |
See Also