mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.65k stars 772 forks source link

Feature request: Export indexed PNG from Tiles window? #2598

Open Heath123 opened 2 years ago

Heath123 commented 2 years ago

I would like to be able to extract the tileset from this window image into a format where I can read the palette and then each pixel of the tiles as an index into the palette. Currently I think you need to use the address of the tile, export it in the memory view window, then also export the palette, but it would be easier if it could be exported from the window to a format that includes both, maybe indexed PNG so then it seems to work the same but preserves all that data.

endrift commented 2 years ago

Unfortunately there are two 256 color palettes in play on the GBA, one for the background tiles, and one for the sprite tiles, adding up to a potential 512 colors. PNG only supports 256 color palettes. I would need to add a way to export only one or the other of these sections, which I can probably do.