Saves this FreeImageBitmap to the specified stream in the specified format.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public void Save( Stream stream, FREE_IMAGE_FORMAT format ) |
Visual Basic (Declaration) |
---|
Public Sub Save ( _ stream As Stream, _ format As FREE_IMAGE_FORMAT _ ) |
Visual C++ |
---|
public: void Save( Stream^ stream, FREE_IMAGE_FORMAT format ) |
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.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | stream is a null reference. |
System..::.Exception | Saving the image failed. |