Click or drag to resize
Accord.NET (logo)

ImageDecoderRegisterDecoder Method

Register image decoder for a specified file extension.

Namespace:  Accord.Imaging.Formats
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
public static void RegisterDecoder(
	string fileExtension,
	IImageDecoder decoder
)
Request Example View Source

Parameters

fileExtension
Type: SystemString
File extension to register decoder for ("bmp", for example).
decoder
Type: Accord.Imaging.FormatsIImageDecoder
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