Uses a memory handle to identify a bitmap type.

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

Syntax

C#
public static FREE_IMAGE_FORMAT GetFileTypeFromMemory(
	FIMEMORY stream,
	int size
)
Visual Basic (Declaration)
Public Shared Function GetFileTypeFromMemory ( _
	stream As FIMEMORY, _
	size As Integer _
) As FREE_IMAGE_FORMAT
Visual C++
public:
static FREE_IMAGE_FORMAT GetFileTypeFromMemory(
	FIMEMORY stream, 
	int size
)

Parameters

stream
Type: FreeImageAPI..::.FIMEMORY
Pointer to the stream.
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