https://github.com/pixieditor/pixiparser
A parser for serializing and deserializing .pixi files used by PixiEditor
https://github.com/pixieditor/pixiparser
csharp dotnet dotnet-core dotpixi nuget parser pixi
Last synced: 4 months ago
JSON representation
A parser for serializing and deserializing .pixi files used by PixiEditor
- Host: GitHub
- URL: https://github.com/pixieditor/pixiparser
- Owner: PixiEditor
- License: mit
- Created: 2020-12-19T11:32:57.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T08:44:40.000Z (about 1 year ago)
- Last Synced: 2024-11-13T09:31:21.901Z (about 1 year ago)
- Topics: csharp, dotnet, dotnet-core, dotpixi, nuget, parser, pixi
- Language: C#
- Homepage:
- Size: 242 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[](https://discord.gg/psrCP35kdk)
[](https://www.nuget.org/packages/PixiEditor.Parser/)
[](https://www.nuget.org/packages/PixiEditor.Parser/)

---
## Getting started
Use `PixiParser.Deserialize()` to deserialize a document and `PixiParser.Serialize()` to serialize
```cs
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](https://github.com/mono/SkiaSharp)
### Example Usage
```cs
using PixiEditor.Parser.Skia;
// Get a SKImage from the png data of a IImageContainer (e.g. ImageLayer or ReferenceLayer)
SKImage image = layer.ToSKImage();
```
```cs
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:
* Ask on our [Discord](https://discord.gg/qSRMYmq)
* Open a [Issue](https://github.com/PixiEditor/PixiParser/issues/new)