Class SKColorJsonConverter
- Assembly
- VisioForge.Core.dll
Converts SkiaSharp.SKColor through its RGBA bytes. The struct's other members (hue, saturation) are computed and must not enter the payload.
public class SKColorJsonConverter : JsonConverter<SKColor>Inheritance
Inherited Members
Methods
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Reads and converts the JSON to type SkiaSharp.SKColor.
public override SKColor Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)Parameters
readerUtf8JsonReader-
The reader.
typeToConvertType-
The type to convert.
optionsJsonSerializerOptions-
An object that specifies serialization options to use.
Returns
- SKColor
-
The converted value.
Write(Utf8JsonWriter, SKColor, JsonSerializerOptions)
Writes a specified value as JSON.
public override void Write(Utf8JsonWriter writer, SKColor value, JsonSerializerOptions options)Parameters
writerUtf8JsonWriter-
The writer to write to.
valueSKColor-
The value to convert to JSON.
optionsJsonSerializerOptions-
An object that specifies serialization options to use.