SKPicture.Deserialize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Deserialize(SKData) |
Deserializes a picture from serialized data. |
| Deserialize(SKStream) |
Deserializes a picture from a stream. |
| Deserialize(Stream) |
Deserializes a picture from a .NET stream. |
| Deserialize(ReadOnlySpan<Byte>) |
Deserializes a picture from a byte span. |
| Deserialize(IntPtr, Int32) |
Deserializes a picture from a native memory pointer. |
Deserialize(ReadOnlySpan<Byte>)
Deserializes a picture from a byte span.
public static SkiaSharp.SKPicture Deserialize(ReadOnlySpan<byte> data);
Parameters
- data
- ReadOnlySpan<Byte>
The byte span containing the serialized picture.
Returns
The deserialized picture, or null if deserialization fails.
Applies to
Deserialize(IntPtr, Int32)
Deserializes a picture from a native memory pointer.
public static SkiaSharp.SKPicture Deserialize(IntPtr data, int length);
Parameters
- data
- IntPtr
The pointer to the serialized picture data.
- length
- Int32
The length of the data in bytes.
Returns
The deserialized picture, or null if deserialization fails.