Edit

Share via


ImageCropper.SaveAsync(IRandomAccessStream, BitmapFileFormat, Boolean) Method

Definition

Saves the cropped image to a stream with the specified format.

public System.Threading.Tasks.Task SaveAsync (Windows.Storage.Streams.IRandomAccessStream stream, Microsoft.Toolkit.Uwp.UI.Controls.BitmapFileFormat bitmapFileFormat, bool keepRectangularOutput = false);
member this.SaveAsync : Windows.Storage.Streams.IRandomAccessStream * Microsoft.Toolkit.Uwp.UI.Controls.BitmapFileFormat * bool -> System.Threading.Tasks.Task
Public Function SaveAsync (stream As IRandomAccessStream, bitmapFileFormat As BitmapFileFormat, Optional keepRectangularOutput As Boolean = false) As Task

Parameters

stream
Windows.Storage.Streams.IRandomAccessStream

The target stream.

bitmapFileFormat
BitmapFileFormat

the specified format.

keepRectangularOutput
Boolean

Whether to always keep rectangular output.

Returns

Task

Applies to