Click or drag to resize

filePathOperationsGetImageFormatByExtension Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Gets the image format by extension.

Namespace:  imbSCI.Core.extensions.io
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static ImageFormat GetImageFormatByExtension(
	this string filepath
)
Request Example View Source

Parameters

filepath
Type: SystemString
The filepath.

Return Value

Type: ImageFormat

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentExceptionFile extension from [" + filepath + "] not recognized - filepath
See Also