IScreenshotResult.CopyToAsync(Stream, ScreenshotFormat, Int32) 方法

定义

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

参数

destination
Stream

要将屏幕截图文件数据复制到的目标 Stream

format
ScreenshotFormat

用于复制此屏幕截图的图像格式。

quality
Int32

用于复制此屏幕截图的质量。 质量仅适用于使用时间 Jpeg

返回

具有 Task 异步操作的当前状态的对象。

适用于