Use PixiParser.Deserialize()
to deserialize a document and PixiParser.Serialize()
to serialize
using PixiEditor.Parser;
Document document = PixiParser.Deserialize("./pixiFile.pixi");
// Do some stuff with the document
PixiParser.Serialize(document, "./pixiFile.pixi");
Package Manager Console:
Install-Package PixiEditor.Parser
.NET CLI:
dotnet add package PixiEditor.Parser
We provide a package containing extensions for working with SkiaSharp
using PixiEditor.Parser.Skia;
// Get a SKImage from the png data of a IImageContainer (e.g. ImageLayer or ReferenceLayer)
SKImage image = layer.ToSKImage();
using PixiEditor.Parser.Skia;
// Encode the image data of the SKImage into the png data of a IImageContainer (e.g. ImageLayer or ReferenceLayer)
layer.FromSKImage(image);
Package Manager Console:
Install-Package PixiEditor.Parser.Skia
.NET CLI:
dotnet add package PixiEditor.Parser.Skia
You can find support here: