Skip to main content

SaveImage(SKImage, Stream, Nullable<Int32>) Method

Save Skia image to a stream.

Definition

Namespace: Avalonia.Skia.Helpers
Assembly: Avalonia.Skia (in Avalonia.Skia.dll)

public static void SaveImage(
SKImage image,
Stream stream,
int? quality = null
)

Parameters

  SKImage
Image to save
  Stream
The output stream to save the image.
  Nullable(Int32)  (Optional)
The optional quality for PNG compression. The quality value is interpreted from 0 - 100. If quality is null the encoder applies the default quality value.

See Also

Reference

ImageSavingHelper Class
SaveImage Overload
Avalonia.Skia.Helpers Namespace