次の方法で共有


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

イメージのコピー先の品質。

戻り値

実装

適用対象