Return a list of valid image modules.
Syntax

[C#]

static IEnumerable<ModuleType> ValidLoadModules(byte[] inData, string inType);
static IEnumerable<ModuleType> ValidLoadModules(byte[] inData, string inType, XImageLoadOptions inOptions);
static IEnumerable<ModuleType> ValidLoadModules(string inPath);
static IEnumerable<ModuleType> ValidLoadModules(string inPath, XImageLoadOptions inOptions);

[Visual Basic]

Shared Function ValidLoadModules(inData As Byte(), inType As String) As IEnumerable(Of ModuleType)
Shared Function ValidLoadModules(inData As Byte(), inType As String, inOptions As XImageLoadOptions) As IEnumerable(Of ModuleType)
Shared Function ValidLoadModules(inPath As String) As IEnumerable(Of ModuleType)
Shared Function ValidLoadModules(inPath As String, inOptions As XImageLoadOptions) As IEnumerable(Of ModuleType)
Params
Name Description
inData The binary data of the image to be imported, as an array.
inType The type of image to be imported (the extension, with or without a leading dot).
inOptions The image load options.
inPath The image file to be imported.
Notes

Return a list of modules capable of loading the image.

You can call this method to find out in advance if there is at least a module that can load the image.

If the default module is disabled this list may be empty.

A module is returned if it is a candidate for loading the image. The module may still fail loading the image later on. In this case an exception will be thrown.

See Also

DisabledImportModules

Example

None.