ImageReader.Create Method (String)

Creates an appropriate image reader on the specified file.

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

Syntax

C#
public static ImageReader Create(
	string fileName
)

Parameters

fileName

Type: System.String

The name of the file to read from.

Return Value

The appropriate descendant of the ImageReader class.

Examples

C#
using (var reader = ImageReader.Create(@"Images\in.jpg"))
using (var rotate = new Rotate(90))
using (var writer = ImageWriter.Create(@"Images\Output\out.jpg"))
{
    Pipeline.Run(reader + rotate + writer);
}

See Also

Reference