ImageLoadersRegistry.CreateFirstSupportedLoader

ImageLoadersRegistry.CreateFirstSupportedLoader method

Creates the first found loader suitable for the specified stream and optionally the loadOptions.

public static IImageLoader CreateFirstSupportedLoader(Stream stream, LoadOptions loadOptions)
ParameterTypeDescription
streamStreamThe stream.
loadOptionsLoadOptionsThe load options.

Return Value

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

Remarks

The first loader will be actually the last registered.

See Also