Skip to content

Latest commit

 

History

History
74 lines (48 loc) · 1.7 KB

README.md

File metadata and controls

74 lines (48 loc) · 1.7 KB

Discord Server Download Downloads


Getting started

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");

Installation

Package Manager Console:

Install-Package PixiEditor.Parser

.NET CLI:

dotnet add package PixiEditor.Parser

SkiaSharp

We provide a package containing extensions for working with SkiaSharp

Example Usage

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);

Installation

Package Manager Console:

Install-Package PixiEditor.Parser.Skia

.NET CLI:

dotnet add package PixiEditor.Parser.Skia

Need Help?

You can find support here: