FreeImage.SaveToHandle Method

FreeImage.NET

FreeImageSaveToHandle Method
Saves a bitmap to an arbitrary source.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SaveToHandle(
	FREE_IMAGE_FORMAT fif,
	FIBITMAP dib,
	ref FreeImageIO io,
	fi_handle handle,
	FREE_IMAGE_SAVE_FLAGS flags
)

Parameters

fif
Type: FreeImageAPIFREE_IMAGE_FORMAT
Type of the bitmap.
dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
io
Type: FreeImageAPI.IOFreeImageIO
A FreeImageIO structure with functionpointers to handle the source.
handle
Type: FreeImageAPI.IOfi_handle
A handle to the source.
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