Creates and initializes a new IFormatReader class instance, opening the specified file.
Namespace:
Aurigma.GraphicsMill.Codecs
Assembly:
Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)
Public Shared Function CreateFormatReader ( _ filename As String _ ) As IFormatReader
public static IFormatReader CreateFormatReader( string filename )
Type: System.String
Full path to the file to open.'Create a reader using the class factory Private Sub CreateReader(ByVal fileName As String) Try reader = MediaFormatManager.CreateFormatReader(fileName) Catch ex As System.Exception MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, _ MessageBoxIcon.Error) End Try End Sub
//Create a reader using the class factory private void CreateReader(String fileName) { try { reader = MediaFormatManager.CreateFormatReader(fileName); } catch(System.Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }