SKBitmap.Encode(SKWStream, SKEncodedImageFormat, Int32) Method

Definition

Warning

This API is now obsolete.

Encodes the image using the specified format.

[System.Obsolete("Use SKPixmap.Encode instead.")]
public bool Encode (SkiaSharp.SKWStream dst, SkiaSharp.SKEncodedImageFormat format, int quality);

Parameters

dst
SKWStream

The stream to write the encoded image to.

format
SKEncodedImageFormat

The file format used to encode the image.

quality
Int32

The quality level to use for the image.

Returns

Returns true on success, or false if there was an error.

Attributes

Applies to