Share via


IPictureWriter.SaveAsync(IPicture, Stream) Method

Definition

Asynchronously saves a picture to the specified stream.

public:
 System::Threading::Tasks::Task ^ SaveAsync(Microsoft::Maui::Graphics::IPicture ^ picture, System::IO::Stream ^ stream);
public System.Threading.Tasks.Task SaveAsync(Microsoft.Maui.Graphics.IPicture picture, System.IO.Stream stream);
abstract member SaveAsync : Microsoft.Maui.Graphics.IPicture * System.IO.Stream -> System.Threading.Tasks.Task
Public Function SaveAsync (picture As IPicture, stream As Stream) As Task

Parameters

picture
IPicture

The picture to save.

stream
Stream

The stream to save the picture to.

Returns

A task representing the asynchronous save operation.

Applies to