Condividi tramite


IScreenshotResult.OpenReadAsync(ScreenshotFormat, Int32) Metodo

Definizione

Apre un Stream oggetto al file screenshot corrispondente nel file system.

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

Parametri

format
ScreenshotFormat

Formato dell'immagine usato per leggere questo screenshot.

quality
Int32

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

Restituisce

Oggetto Stream contenente i dati del file di screenshot.

Si applica a