ImageGear .NET - Updated November 28, 2017
Detect(Stream) Method




ImageGear23.Core Assembly > ImageGear.Formats Namespace > ImGearFileFormats Class : Detect(Stream) Method
The data stream containing an image.
Detects the format of an image.
Syntax
'Declaration
 
Public Shared Function Detect( _
   ByVal stream As Stream _
) As IImGearFormat
 
'Usage
 
Dim stream As Stream
Dim value As IImGearFormat
 
value = ImGearFileFormats.Detect(stream)

Parameters

stream
The data stream containing an image.

Return Value

The format from the list of formats.
Remarks
If an image cannot be detected, an exception is thrown.
See Also

Reference

ImGearFileFormats Class
ImGearFileFormats Members