Interface IImageLoaderDescriptor
Interface IImageLoaderDescriptor
Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.7.0)
The image loader descriptor specifying the loader properties. The loader descriptor is used to overcomethe necessity to contain each image loader instance in memory and multithreading issues.
public interface IImageLoaderDescriptor : IImageDescriptor
{
string LoaderType { get; set; }
string ConfigurationName { get; set; }
}
Implements
Methods
CanLoad(StreamContainer, LoadOptions)
Determines whether image loader can read a new image from the specified stream and optionally using the loadOptions'.
bool CanLoad(StreamContainer streamContainer, LoadOptions loadOptions)
{
}
Parameters
streamContainer
StreamContainer
The stream container.
loadOptions
LoadOptions
The file format details specified by loadOptions’. The
loadOptions’ may be null.
Returns
’true’ if image loader created by this descriptor can read image from stream; otherwise, ‘false’.
CreateInstance()
Creates a new loader instance.
public IImageLoader CreateInstance()
{
return new ImageLoader();
}
The above code follows standard C# conventions for indentation and spacing, so no reformatting is needed.
Returns
A new loader instance.