Skip to content

ImageFormat.ReadAsync Method ​

Definition ​

Reads a image file asynchronously.

c#
public new Task<ImageFile> ReadAsync(Stream stream, CancellationToken cancellationToken = null);

Parameters ​

NameTypeDescription
streamStreamThe stream to read.
cancellationTokenCancellationTokenAn optional cancellation token.

Returns ​

Task<ImageFile>

The file read from the stream.