ImageLoadersRegistry.GetFirstSupportedDescriptor

ImageLoadersRegistry.GetFirstSupportedDescriptor method

Gets the fist found supported descriptor suitable for the specified stream and optionally the loadOptions.

public static IImageLoaderDescriptor GetFirstSupportedDescriptor(Stream stream, 
    LoadOptions loadOptions)
ParameterTypeDescription
streamStreamThe stream.
loadOptionsLoadOptionsThe load options.

Return Value

The loader descriptor which supports the specified stream and loadOptions or null if no such descriptor is found.

Remarks

The first loader descriptor will be actually the last registered.

See Also