Method CanRead
CanRead(string?)
Returns true
if at least one of the available image handlers can read the file
with the given name.
public static bool CanRead(string? url)
Parameters
url
stringPath or url to file with image data.
Returns
CanRead(Stream)
Returns true
if at least one of the available image handlers can read the data in
the given stream.
public static bool CanRead(Stream stream)
Parameters
stream
StreamOpened input stream from which to load the image. Currently, the stream must support seeking.
Returns
Remarks
This function doesn't modify the current stream position (because it restores the original position before returning; this however requires the stream to be seekable).