Share via


IScreenshotResult.CopyToAsync(Stream, ScreenshotFormat, Int32) Method

Definition

public System.Threading.Tasks.Task CopyToAsync (System.IO.Stream destination, Microsoft.Maui.Media.ScreenshotFormat format = Microsoft.Maui.Media.ScreenshotFormat.Png, int quality = 100);
abstract member CopyToAsync : System.IO.Stream * Microsoft.Maui.Media.ScreenshotFormat * int -> System.Threading.Tasks.Task
Public Function CopyToAsync (destination As Stream, Optional format As ScreenshotFormat = Microsoft.Maui.Media.ScreenshotFormat.Png, Optional quality As Integer = 100) As Task

Parameters

destination
Stream

The destination Stream to copy the screenshot file data to.

format
ScreenshotFormat

The image format used to copy this screenshot.

quality
Int32

The quality used to copy this screenshot. Quality only applies when Jpeg is used.

Returns

A Task object with the current status of the asynchronous operation.

Applies to