Processes the image according to the specified process options and converts it to the specified output format.

public abstract Task<Stream> ProcessAsync(Stream inputStream, ImageProcessOptions processOptions, Nullable<ImageFormat> outputFormat)
Returns:
Task<Stream>

Parameters

inputStream Stream

The image input stream. The stream may be non-seekable. The input stream will not be disposed by the processor.

processOptions ImageProcessOptions

The image process options.

outputFormat Nullable<ImageFormat>

The format to convert the image to. If null, will keep the same format as the source image.

In this article