Home

Awesome

GOALS: Complete PNG encoding and decoding for Unity engine

API:

TODO:

HOW TO USE:

using UnityEngine;
using Pngcs.Unity;
public class PngcsTest : MonoBehaviour
{
    void Awake ()
    {
        // THIS IS HOW YOU READ:
        Texture2D texture = PNG.Read( @"D:/input.png" );

        // THIS IS HOW YOU WRITE:
        PNG.Write( texture , @"D:/output.png" );
    }
    
    void OnDestroy ()
    {
        //remember to always release memory when texture is not needed anymore:
        Destroy( texture );
    }
}

REQUIREMENTS:

This window is available under top menu bar/Test/Pngcs Load Pngcs test window Note: Alpha8 images appear inverted here but aren't - it's due to no color info but black fill and transparency.