Gets the image format from a file name.

Namespace: MonoSoftware.Core.Drawing
Assembly: MonoSoftware.Core (in MonoSoftware.Core.dll) Version: 1.0.40.669 (1.0.40.669)

Syntax

C#
public static ImageFormat GetImageFormat(
	string fileName
)
Visual Basic
Public Shared Function GetImageFormat ( 
	fileName As String
) As ImageFormat
Visual C++
public:
static ImageFormat^ GetImageFormat(
	String^ fileName
)
F#
static member GetImageFormat : 
        fileName : string -> ImageFormat 

Parameters

fileName
Type: System..::..String
Image file name

Return Value

Type: ImageFormat
Image format

See Also