Adds a frame to the file specified using the specified parameters.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public void SaveAdd( string filename, int insertPosition, FREE_IMAGE_FORMAT format, FREE_IMAGE_LOAD_FLAGS loadFlags, FREE_IMAGE_SAVE_FLAGS saveFlags ) |
Visual Basic (Declaration) |
---|
Public Sub SaveAdd ( _ filename As String, _ insertPosition As Integer, _ format As FREE_IMAGE_FORMAT, _ loadFlags As FREE_IMAGE_LOAD_FLAGS, _ saveFlags As FREE_IMAGE_SAVE_FLAGS _ ) |
Visual C++ |
---|
public: void SaveAdd( String^ filename, int insertPosition, FREE_IMAGE_FORMAT format, FREE_IMAGE_LOAD_FLAGS loadFlags, FREE_IMAGE_SAVE_FLAGS saveFlags ) |
Parameters
- filename
- Type: System..::.String
File to add this frame to.
- insertPosition
- Type: System..::.Int32
The position at which the frame should be inserted.
- format
- Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
Format of the image.
- loadFlags
- Type: FreeImageAPI..::.FREE_IMAGE_LOAD_FLAGS
Flags to enable or disable plugin-features.
- saveFlags
- Type: FreeImageAPI..::.FREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | filename is a null reference. |
System.IO..::.FileNotFoundException | filename does not exist. |
System..::.Exception | Saving the image has failed. |
System..::.ArgumentOutOfRangeException | insertPosition is out of range. |