Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 3 hours 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 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T08:44:40.000Z (7 days ago)
- Last Synced: 2024-11-13T09:31:21.901Z (7 days 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
[![Discord Server](https://badgen.net/badge/discord/join%20chat/7289DA?icon=discord)](https://discord.gg/psrCP35kdk)
[![Download](https://img.shields.io/badge/nuget-download-blue)](https://www.nuget.org/packages/PixiEditor.Parser/)
[![Downloads](https://img.shields.io/nuget/dt/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)