PNG image with different palettes

Blitz3D Forums/Blitz3D Programming/PNG image with different palettes

It works!

In paletted png images there's a palette chunk, ending with a crc. I do this:

1) load the file .png
2) find the palette chunk
3) change the color in the palette
3) find the new crc of the chunk & overwrite the old one
4) save the new file

It's very fast, if someone is interested I posted a sample code:
http://blitzbasic.com/codearcs/codearcs.php?code=1326