SKPixelSerializer Class

Definition

Warning

This API is now obsolete.

Represents a mechanism for serializing pixels.

[System.Obsolete]
public abstract class SKPixelSerializer : SkiaSharp.SKObject
Inheritance
SKPixelSerializer
Derived
Attributes

Constructors

SKPixelSerializer()

Creates a new instance of SKPixelSerializer with an empty buffer.

Methods

Create(Func<SKPixmap,SKData>)

Create a new pixel serializer using the specified delegate to encode the pixel data.

Create(Func<IntPtr,IntPtr,Boolean>, Func<SKPixmap,SKData>)

Create a new pixel serializer using the specified delegate to encode the pixel data.

Dispose(Boolean)

Releases the unmanaged resources used by the SKPixelSerializer and optionally releases the managed resources.

Encode(SKPixmap)

Encode the specified pixel data.

OnEncode(SKPixmap)

Implemented by derived SKPixelSerializer types to encode the specified pixel data.

OnUseEncodedData(IntPtr, IntPtr)

Implemented by derived SKPixelSerializer types to determine whether the caller should use the specified encoded data instead of encoding a new version.

UseEncodedData(IntPtr, UInt64)

Determines whether the serializer wants to use the specified encoded data instead of encoding a new version.

Applies to