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

FormatManager Class

This class enables you to manage installed format readers and writers.

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


Visual Basic
Public NotInheritable Class FormatManager
public sealed class FormatManager


This class provides a number of static method and properties related with format readers and writers. In particular it serves as a class factory that creates proper FormatReader or FormatWriter descendant class from specified media. It is extremely useful, for example, when you do not know the format of the file to load beforehand. In this case you do not know what exact format reader implementation to create. Here format manager comes into play: you just call CreateFormatReader(String) and format manager automatically determines file format. This way it creates proper format reader and returns it. The same is true for format writers: method CreateFormatWriter(String) analyzes file extension and return proper format writer instance.

Another useful feature of this class is automatic retrieval of filter for file dialog. Using FilterStringForLoad property you can get a filter string for open file dialog, using FilterStringForSave property - a filter string for save file dialog.

Each format supported with Graphics Mill for .NET has its own format ID. They are represented by static fields of this class, such as JpegFormat, GifFormat, etc. This ID is passed to number of methods of this class, and also returned by format readers and writers.

Inheritance Hierarchy

L Aurigma.GraphicsMill.Codecs.FormatManager

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.

Object Model

See Also