This documentation is for the old version. Go to the latest Graphics Mill docs

FormatManager.GetMediaFormat Method (String)

Recognizes the media format by the specified file name.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Shared Function GetMediaFormat ( _
	fileName As String _
) As Long
C#
public static long GetMediaFormat(
	string fileName
)

Parameters

fileName

Type: System.String

The name of the file to get a media format for.

Return Value

A number that specifies the media format number. You can use static members JpegFormat, TiffFormat, and its siblings to compare it with.

See Also

Reference