Saves a previosly loaded FIBITMAP to a stream.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool SaveToMemory(
	FREE_IMAGE_FORMAT fif,
	FIBITMAP dib,
	FIMEMORY stream,
	FREE_IMAGE_SAVE_FLAGS flags
)
Visual Basic (Declaration)
Public Shared Function SaveToMemory ( _
	fif As FREE_IMAGE_FORMAT, _
	dib As FIBITMAP, _
	stream As FIMEMORY, _
	flags As FREE_IMAGE_SAVE_FLAGS _
) As Boolean
Visual C++
public:
static bool SaveToMemory(
	FREE_IMAGE_FORMAT fif, 
	FIBITMAP dib, 
	FIMEMORY stream, 
	FREE_IMAGE_SAVE_FLAGS flags
)

Parameters

fif
Type: FreeImageAPI..::.FREE_IMAGE_FORMAT
Type of the bitmap.
dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
stream
Type: FreeImageAPI..::.FIMEMORY
Handle to a memory stream.
flags
Type: FreeImageAPI..::.FREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also