Partager via


IScreenshotResult.OpenReadAsync(ScreenshotFormat, Int32) Méthode

Définition

Ouvre un Stream vers le fichier de capture d’écran correspondant sur le système de fichiers.

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)

Paramètres

format
ScreenshotFormat

Format d’image utilisé pour lire cette capture d’écran.

quality
Int32

Qualité utilisée pour lire cette capture d’écran.

Retours

Stream contenant les données du fichier de capture d’écran.

S’applique à