IScreenshotResult.CopyToAsync(Stream, ScreenshotFormat, Int32) Metodo

Definizione

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

Parametri

destination
Stream

Destinazione Stream in cui copiare i dati del file di screenshot.

format
ScreenshotFormat

Formato dell'immagine usato per copiare questo screenshot.

quality
Int32

Qualità usata per copiare questo screenshot. La qualità si applica solo quando Jpeg viene utilizzata.

Restituisce

Oggetto Task con lo stato corrente dell'operazione asincrona.

Si applica a