Skip to content

Latest commit

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

PNGNormalizer

Provides PNG normalization for files that have been crushed, especially PNGs optimized for iOS with Apple's version of pngcrush.

How To Use

This example shows how to read a crushed PNG, named Icon@2x.png, and save a normalized version as Icon@2x.clean.png.

// Get crushed PNG file as a byte arraybyte[]sourcePngData=System.IO.File.ReadAllBytes("Icon@2x.png");// Parse the crushed datavarpng=newPngFile(sourcePngData);// Get the normalized PNG databyte[]normalizedPngData=png.Data;// Save the normalized fileSystem.IO.File.WriteAllBytes("Icon@2x.clean.png",normalizedPngData);

About

A .NET library for normalizing iOS PNG images (crushed)

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages