FreeImage.GetFileTypeFromHandle Method

FreeImage.NET

FreeImageGetFileTypeFromHandle Method
Uses the FreeImageIO structure as described in the topic bitmap management functions to identify a bitmap type.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FREE_IMAGE_FORMAT GetFileTypeFromHandle(
	ref FreeImageIO io,
	fi_handle handle,
	int size
)

Parameters

io
Type: FreeImageAPI.IOFreeImageIO
A FreeImageIO structure with functionpointers to handle the source.
handle
Type: FreeImageAPI.IOfi_handle
A handle to the source.
size
Type: SystemInt32
Size in bytes of the source.

Return Value

Type: FREE_IMAGE_FORMAT
Type of the bitmap.
See Also