17 references to ScreenshotFormat
Microsoft.Maui (5)
VisualDiagnostics\VisualDiagnostics.cs (5)
84 return await ScreenshotResultToArray(result, ScreenshotFormat.Png, 100); 90 return await ScreenshotResultToArray(result, ScreenshotFormat.Jpeg, quality); 96 return await ScreenshotResultToArray(result, ScreenshotFormat.Png, 100); 102 return await ScreenshotResultToArray(result, ScreenshotFormat.Jpeg, quality); 105 static async Task<byte[]?> ScreenshotResultToArray(IScreenshotResult? result, ScreenshotFormat format, int quality)
Microsoft.Maui.Essentials (12)
Screenshot\Screenshot.netstandard.watchos.macos.cs (2)
22 Task<Stream> PlatformOpenReadAsync(ScreenshotFormat format, int quality) => 25 Task PlatformCopyToAsync(Stream destination, ScreenshotFormat format, int quality) =>
Screenshot\Screenshot.shared.cs (10)
118 /// <param name="quality">The quality used to read this screenshot. Quality only applies when <see cref="ScreenshotFormat.Jpeg"/> is used.</param> 120 Task<Stream> OpenReadAsync(ScreenshotFormat format = ScreenshotFormat.Png, int quality = 100); 127 /// <param name="quality">The quality used to copy this screenshot. Quality only applies when <see cref="ScreenshotFormat.Jpeg"/> is used.</param> 129 Task CopyToAsync(Stream destination, ScreenshotFormat format = ScreenshotFormat.Png, int quality = 100); 290 public Task<Stream> OpenReadAsync(ScreenshotFormat format = ScreenshotFormat.Png, int quality = 100) 293 public Task CopyToAsync(Stream destination, ScreenshotFormat format = ScreenshotFormat.Png, int quality = 100)