Freigeben über


PlatformImage.SaveAsync(Stream, ImageFormat, Single) Methode

Definition

Speichert den Inhalt dieses Bilds im bereitgestellten Stream Objekt.

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

Parameter

stream
Stream

Der Zieldatenstrom, in dem die Bytes dieses Bilds gespeichert werden.

format
ImageFormat

Das Zielformat des Bilds.

quality
Single

Die Zielqualität des Bilds.

Gibt zurück

Implementiert

Gilt für: