次の方法で共有


PlatformImage.Save(Stream, ImageFormat, Single) メソッド

定義

このイメージの内容を指定された Stream オブジェクトに保存します。

public void Save (System.IO.Stream stream, Microsoft.Maui.Graphics.ImageFormat format = Microsoft.Maui.Graphics.ImageFormat.Png, float quality = 1);
abstract member Save : System.IO.Stream * Microsoft.Maui.Graphics.ImageFormat * single -> unit
override this.Save : System.IO.Stream * Microsoft.Maui.Graphics.ImageFormat * single -> unit
Public Sub Save (stream As Stream, Optional format As ImageFormat = Microsoft.Maui.Graphics.ImageFormat.Png, Optional quality As Single = 1)

パラメーター

stream
Stream

このイメージのバイトが保存される宛先ストリーム。

format
ImageFormat

イメージの変換先の形式。

quality
Single

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

実装

例外

0 未満または 1 より大きい場合 quality にスローされます。

指定された値が、このイメージの format 元の形式と一致しない場合にスローされます。

注釈

この quality 値は現在使用されていません。

適用対象