Compartir a través de


PlatformImage.SaveAsync(Stream, ImageFormat, Single) Método

Definición

Guarda el contenido de esta imagen en el objeto proporcionado 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

Parámetros

stream
Stream

Flujo de destino en el que se guardarán los bytes de esta imagen.

format
ImageFormat

Formato de destino de la imagen.

quality
Single

Calidad de destino de la imagen.

Devoluciones

Implementaciones

Se aplica a