Click or drag to resize
Accord.NET (logo)

ToolsGetFormat Method

Gets the image format most likely associated with a given file name.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public static ImageFormat GetFormat(
	string fileName
)
Request Example View Source

Parameters

fileName
Type: SystemString
The filename in the form "image.jpg".

Return Value

Type: ImageFormat
The ImageFormat most likely associated with the given fileName.
See Also