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

FormatManager.GetMediaFormat Method (Stream)

Recognizes the media format by the specified stream.

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

Syntax

Visual Basic
Public Shared Function GetMediaFormat ( _
	stream As Stream _
) As Long
C#
public static long GetMediaFormat(
	Stream stream
)

Parameters

stream

Type: System.IO.Stream

The stream 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