IImageLoaderDescriptor.CanLoad

IImageLoaderDescriptor.CanLoad method

确定图像加载器是否可以从指定的流读取新图像,并可选地使用 loadOptions

public bool CanLoad(StreamContainer streamContainer, LoadOptions loadOptions)
参数类型描述
streamContainerStreamContainer流容器。
loadOptionsLoadOptionsloadOptions 指定的文件格式详细信息。loadOptions 可能为 null。

返回值

true 如果由此描述符创建的图像加载器可以从流中读取图像;否则为 false

另请参见