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

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

Syntax

C#
public static FREE_IMAGE_FORMAT GetFileTypeFromHandle(
	ref FreeImageIO io,
	fi_handle handle,
	int size
)
Visual Basic (Declaration)
Public Shared Function GetFileTypeFromHandle ( _
	ByRef io As FreeImageIO, _
	handle As fi_handle, _
	size As Integer _
) As FREE_IMAGE_FORMAT
Visual C++
public:
static FREE_IMAGE_FORMAT GetFileTypeFromHandle(
	FreeImageIO% io, 
	fi_handle handle, 
	int size
)

Parameters

io
Type: FreeImageAPI.IO..::.FreeImageIO %
A FreeImageIO structure with functionpointers to handle the source.
handle
Type: FreeImageAPI.IO..::.fi_handle
A handle to the source.
size
Type: System..::.Int32
Size in bytes of the source.

Return Value

Type of the bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also