Méthode | Description | |
---|---|---|
DecodeFromFile ( string fileName ) : |
Decode first frame for the specified file. The method uses table of registered image decoders to find the one, which should be used for the specified file. If there is not appropriate decoder found, the method uses default .NET's image decoding routine (see System.Drawing.Image.FromFile( string )). |
|
DecodeFromFile ( string fileName, |
Decode first frame for the specified file. The method uses table of registered image decoders to find the one, which should be used for the specified file. If there is not appropriate decoder found, the method uses default .NET's image decoding routine (see System.Drawing.Image.FromFile( string )). |
|
RegisterDecoder ( string fileExtension, IImageDecoder decoder ) : void |
Register image decoder for a specified file extension. The method allows to register image decoder object, which should be used to decode images from files with the specified extension. |
Méthode | Description | |
---|---|---|
FromFile ( string fileName ) : |
||
ImageDecoder ( ) : System |
public static DecodeFromFile ( string fileName ) : |
||
fileName | string | File name to read image from. |
Résultat |
public static DecodeFromFile ( string fileName, |
||
fileName | string | File name to read image from. |
imageInfo | Information about the decoded image. | |
Résultat |
public static RegisterDecoder ( string fileExtension, IImageDecoder decoder ) : void | ||
fileExtension | string | File extension to register decoder for ("bmp", for example). |
decoder | IImageDecoder | Image decoder to use for the specified file extension. |
Résultat | void |