Returns the file format of the specified file by reading the file and trying to recognize the file header. Some formats cannot be detected by content alone. Sony ARW and Kodak DCR are TIFF internally so will return as TIFF. WBMP and Implicit Dicom will return as ioUnknown.

Namespace: HiComponents.IEvolution
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public static IEFileFormats FindFileFormat(
	string fileName,
	IEImage..::..FindFormatMethod findMethod
)
Public Shared Function FindFileFormat ( _
	fileName As String, _
	findMethod As IEImage..::..FindFormatMethod _
) As IEFileFormats
public:
static IEFileFormats FindFileFormat(
	String^ fileName, 
	IEImage..::..FindFormatMethod findMethod
)

Parameters

fileName
String
The name of the file to test
findMethod
IEImage..::..FindFormatMethod
determines how the file extension is used to aid or confirm format detection.

Return Value

Returns image format found

See Also