Image.GetFileFormat

GetFileFormat(string)

Gets the file format.

public static FileFormat GetFileFormat(string filePath)
ParameterTypeDescription
filePathStringThe file path.

Return Value

The determined file format.

Remarks

The file format determined does not mean that the specified image may be loaded. Use one of the CanLoad method overloads to determine whether file may be loaded.

See Also


GetFileFormat(Stream)

Gets the file format.

public static FileFormat GetFileFormat(Stream stream)
ParameterTypeDescription
streamStreamThe stream.

Return Value

The determined file format.

Remarks

The file format determined does not mean that the specified image may be loaded. Use one of the CanLoad method overloads to determine whether stream may be loaded.

See Also