FreeImageBitmap.SaveAdd Method (String, FreeImageBitmap, Int32, FREE_IMAGE_FORMAT, FREE_IMAGE_LOAD_FLAGS, FREE_IMAGE_SAVE_FLAGS)

FreeImage.NET

FreeImageBitmapSaveAdd Method (String, FreeImageBitmap, Int32, 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 image 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,
	int insertPosition,
	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.
insertPosition
Type: SystemInt32
The position of the inserted frame.
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
ExceptionCondition
ArgumentNullExceptionfilename or bitmap is null.
FileNotFoundExceptionfilename does not exist.
ExceptionSaving the image failed.
ArgumentOutOfRangeExceptioninsertPosition is out of range.
See Also