Skip to content

A parser for serializing and deserializing .pixi files used by PixiEditor

License

Notifications You must be signed in to change notification settings

PixiEditor/PixiParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

A parser for serializing and deserializing .pixi files used by PixiEditor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •  

Languages