다음을 통해 공유


IScreenshotResult.OpenReadAsync(ScreenshotFormat, Int32) 메서드

정의

Stream 파일 시스템의 해당 스크린샷 파일을 엽니다.

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)

매개 변수

format
ScreenshotFormat

이 스크린샷을 읽는 데 사용되는 이미지 형식입니다.

quality
Int32

이 스크린샷을 읽는 데 사용되는 품질입니다. 품질은 Jpeg 사용되는 경우에만 적용됩니다.

반환

Stream 스크린샷 파일 데이터를 포함하는 A.

적용 대상