PlatformImage.SaveAsync(Stream, ImageFormat, Single) 方法

定义

将此图像的内容保存到提供 Stream 的对象。

public System.Threading.Tasks.Task SaveAsync (System.IO.Stream stream, Microsoft.Maui.Graphics.ImageFormat format = Microsoft.Maui.Graphics.ImageFormat.Png, float quality = 1);
abstract member SaveAsync : System.IO.Stream * Microsoft.Maui.Graphics.ImageFormat * single -> System.Threading.Tasks.Task
override this.SaveAsync : System.IO.Stream * Microsoft.Maui.Graphics.ImageFormat * single -> System.Threading.Tasks.Task
Public Function SaveAsync (stream As Stream, Optional format As ImageFormat = Microsoft.Maui.Graphics.ImageFormat.Png, Optional quality As Single = 1) As Task

参数

stream
Stream

此映像的目标流将保存到此映像的字节数。

format
ImageFormat

图像的目标格式。

quality
Single

图像的目标质量。

返回

实现

适用于