Tried to make this post as clear and concise as possible while including specific context as to what led me to my question(s) 😅
So I was playing around with a program I found on my old computer (~2009, running Windows 7) called unLZ-GBA. This program reads .ROM files and basically helps you find find sprites and export them as image files. Here's the interface:
It gives you a preview of the sprite and in the lower right-hand corner it shows you the 16 color palette used for the sprite.
Long story short... when you save a sprite as a .PNG file and then open it in MS Paint, in addition to importing the image, it also appears to import the image's color palette. (MS Paint for XP that is, doesn't work in MS Paint for WIndows 7)
So let's say I export this sprite from the .ROM to my computer as a .PNG file using unLZ-GBA:
After exporting the .PNG file to my computer, I open it in MS Paint.
Now that I have the .PNG open in MS Paint I can take any image and paste it into the project. For this example I found an image that was predominantly green, tan, white and black:
Once I paste it in the same project as the sprite I get this:
It automatically converted the full color image to the 16 color palette of the sprite. You can see each of the image's original colors is converted to the color closest to it in the 16 color palette (or at least I'm guessing that's what's going on).
So here are my questions:
> How does this work? Why is it that these .PNG files come with their own built-in color palettes? Why do these color palettes only seem to remain intact in MS Paint XP and not modern graphic editors? Is it possible to create my own .PNG files that have built-in color palettes? Can I customize these palettes to any colors I want? Is this limited to 16 colors or could it be expanded to a 96 color palette for use with PDN color palettes?
> Can you do this in PDN? Is there any way to convert a full color image to a specific custom palette of colors in PDN? (I know you can reduce the number of colors through TR's Color Reducer, but I'm looking for conversion to a specific palette of colors not just reduction.) If not in PDN, is there any other (free) program that can do this?
*If you couldn't already tell I have no education in regards to computers, graphic design, etc. I'm guessing this is a relatively simple concept but I can't seem to find any relevant info on the web (I swear Google is not what it used to be) so any insight would be greatly appreciated!*