Skip to content

ImageFormat.ReadAsync Method

Definition

Reads a image file asynchronously.

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

Parameters

Name Type Description
stream Stream The stream to read.
cancellationToken CancellationToken An optional cancellation token.

Returns

Task<ImageFile>

The file read from the stream.