FreeImage.NET Class Library Reference
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_FORMATType of the bitmap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | stream is null. |
ArgumentException | stream can not read. |
See Also