FreeImage.SaveToMemory Method

FreeImage.NET

FreeImageSaveToMemory Method
Saves a previosly loaded FIBITMAP to a stream.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SaveToMemory(
	FREE_IMAGE_FORMAT fif,
	FIBITMAP dib,
	FIMEMORY stream,
	FREE_IMAGE_SAVE_FLAGS flags
)

Parameters

fif
Type: FreeImageAPIFREE_IMAGE_FORMAT
Type of the bitmap.
dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
stream
Type: FreeImageAPIFIMEMORY
Handle to a memory stream.
flags
Type: FreeImageAPIFREE_IMAGE_SAVE_FLAGS
Flags to enable or disable plugin-features.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also