FreeImage.GetFileTypeFromStream Method

FreeImage.NET

FreeImageGetFileTypeFromStream Method
Orders FreeImage to analyze the bitmap signature. In case the stream is not seekable, the stream will have been used and must be recreated for loading.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FREE_IMAGE_FORMAT GetFileTypeFromStream(
	Stream stream
)

Parameters

stream
Type: System.IOStream
Name of the stream to analyze.

Return Value

Type: FREE_IMAGE_FORMAT
Type of the bitmap.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
ArgumentExceptionstream can not read.
See Also