I'm porting a DOS game to AS3. I need a way to specifically format my sprite files.
I need to know how to take a 256-colour paletted PNG, and save a (presumably) 32-bit PNG, where all three colour channels are summed to the blue channel only - so all colour information is contained only on the blue channel.
I plan on modifying an AS3 PNG encoder to do this, but I don't know how to specifically calculate the value of each pixel. any help please?
Much appreciated!