PNGtoUDG
Posted: Wed Jul 13, 2011 2:47 pm
Hi,
I had some UDGs designed in PNG, laid out as 8x8 tiles, so I wrote a little program to extract data statements for them.
http://www.kweepa.com/step/vic20/PNGToUDG.exe
You just place it in a directory containing PNGs and it writes data statements to the standard output.
Requires the .NET framework 3.5. Sorry!
I had some UDGs designed in PNG, laid out as 8x8 tiles, so I wrote a little program to extract data statements for them.
http://www.kweepa.com/step/vic20/PNGToUDG.exe
You just place it in a directory containing PNGs and it writes data statements to the standard output.
Code: Select all
> dir /b
spr.png
lad.png
> PNGToUDG > udg.txt
> type udg.txt
; spr.png
defb 0, 1, 255, 128, 127, 33, 31, 255
defb 0, 1, 255, 128, 127, 31, 33, 255
; lad.png
defb 44, 65, 63, 63, 63, 37, 224, 255
>