Udostępnij za pośrednictwem


PlatformImage.SaveAsync(Stream, ImageFormat, Single) Metoda

Definicja

Zapisuje zawartość tego obrazu w podanym Stream obiekcie.

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

Parametry

stream
Stream

Docelowy strumień bajtów tego obrazu zostanie zapisany.

format
ImageFormat

Format docelowy obrazu.

quality
Single

Jakość docelowa obrazu.

Zwraca

Implementuje

Dotyczy