IScreenshotResult.CopyToAsync(Stream, ScreenshotFormat, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
参数
- format
- ScreenshotFormat
用于复制此屏幕截图的图像格式。
返回
具有 Task 异步操作的当前状态的对象。