FreeImage.NET Class Library Reference
FreeImageBitmapSaveAdd Method (String, FreeImageBitmap, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS, FREE_IMAGE_SAVE_FLAGS) |
Adds a specified frame to the file specified using the specified parameters.
Use this method to save selected frames from an to a multiple-frame image.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static void SaveAdd( string filename, FreeImageBitmap bitmap, FREE_IMAGE_FORMAT format, FREE_IMAGE_LOAD_FLAGS loadFlags, FREE_IMAGE_SAVE_FLAGS saveFlags )
Parameters
- filename
- Type: SystemString
File to add this frame to. - bitmap
- Type: FreeImageAPIFreeImageBitmap
A FreeImageBitmap that contains the frame to add. - format
- Type: FreeImageAPIFREE_IMAGE_FORMAT
Format of the image. - loadFlags
- Type: FreeImageAPIFREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features. - saveFlags
- Type: FreeImageAPIFREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | filename or bitmap is null. |
FileNotFoundException | filename does not exist. |
Exception | Saving the image failed. |
See Also