Register image decoder for a specified file extension.

Namespace:  AForge.Imaging.Formats
Assembly:  AForge.Imaging.Formats (in AForge.Imaging.Formats.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public static void RegisterDecoder(
	string fileExtension,
	IImageDecoder decoder
)

Parameters

fileExtension
Type: System..::.String
File extension to register decoder for ("bmp", for example).
decoder
Type: AForge.Imaging.Formats..::.IImageDecoder
Image decoder to use for the specified file extension.

Remarks

The method allows to register image decoder object, which should be used to decode images from files with the specified extension.

See Also