Class ImageCodecManager
ImageCodecManager represents a registry for managing image encoders and decoders.
Inheritance
Namespace: Telerik.Windows.Media.Imaging
Assembly: Telerik.Windows.Controls.dll
Syntax
public static class ImageCodecManager : Object
Properties
Decoders
Gets all registered decoders.
Declaration
public static IEnumerable<IImageDecoder> Decoders { get; }
Property Value
System.Collections.Generic.IEnumerable<IImageDecoder>
|
Encoders
Gets all registered encoders.
Declaration
public static IEnumerable<IImageEncoder> Encoders { get; }
Property Value
System.Collections.Generic.IEnumerable<IImageEncoder>
|
SupportedDecoderExtensions
Gets the supported decoder extensions.
Declaration
public static IEnumerable<string> SupportedDecoderExtensions { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
|
SupportedEncoderExtensions
Gets the supported encoder extensions.
Declaration
public static IEnumerable<string> SupportedEncoderExtensions { get; }
Property Value
System.Collections.Generic.IEnumerable<System.String>
|
Methods
GetDecoderByExtension(String)
Gets the decoder by extension.
Declaration
public static IImageDecoder GetDecoderByExtension(string extension)
Parameters
System.String
extension
The extension. |
Returns
IImageDecoder
|
GetDecoderByName(String)
Gets a decoder by name.
Declaration
public static IImageDecoder GetDecoderByName(string decoderName)
Parameters
System.String
decoderName
Name of the decoder. |
Returns
IImageDecoder
|
GetEncoderByExtension(String)
Gets the encoder by extension.
Declaration
public static IImageEncoder GetEncoderByExtension(string extension)
Parameters
System.String
extension
The extension. |
Returns
IImageEncoder
|
GetEncoderByName(String)
Gets an encoder by name.
Declaration
public static IImageEncoder GetEncoderByName(string encoderName)
Parameters
System.String
encoderName
Name of the encoder. |
Returns
IImageEncoder
|
RegisterDecoder<TDecoder>(TDecoder)
Registers a decoder.
Declaration
public static void RegisterDecoder<TDecoder>(TDecoder decoder)
where TDecoder : IImageDecoder
Parameters
TDecoder
decoder
The decoder. |
Type Parameters
TDecoder
The type of the decoder. |
RegisterEncoder<TEncoder>(TEncoder)
Registers an encoder.
Declaration
public static void RegisterEncoder<TEncoder>(TEncoder encoder)
where TEncoder : IImageEncoder
Parameters
TEncoder
encoder
The encoder. |
Type Parameters
TEncoder
The type of the encoder. |