Skip to content

Program to convert a PNG file to an C header as an array in either RGB565 or RGB5A1 format. This is useful for embedding pixmaps to display with a PAL board or Arduino.

License

Notifications You must be signed in to change notification settings

oleg-codaio/png2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

png2c

Program to convert a PNG file to an C header as an array of hexadecimal unsigned short integers in either RGB565 or RGB5A1 format. This is useful for embedding pixmaps to display with a PAL board or Arduino.

Usage: png2c pngfile [-a]

If -a is specified then the output format will be RGB5A1.

Compiled on Linux, but should work on any platform with libpng installed. For example output, see example.png and example.h.

About

Program to convert a PNG file to an C header as an array in either RGB565 or RGB5A1 format. This is useful for embedding pixmaps to display with a PAL board or Arduino.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published