bbbradsmith / binxelview

Binxelview binary image explorer
153 stars 10 forks source link

Feature suggestion: load palettes from PNG files #3

Closed foone closed 5 years ago

foone commented 5 years ago

One thing that should be simple to implement but would be really handy is to allow you to select a PNG file when you click "load palette", and simply extract and use the palette from that PNG file.

I assume just 8-bit PNG files, loading palettes from RGB/RGBA files doesn't make a lot of sense unless you're using that pseudo-format of one a 256x1 RGB file, and it's just loaded linearly as if it was a palette.

bbbradsmith commented 5 years ago

I suppose same as the format suggestion, I'd maybe add another file type to the filter dropdown for "image", and then use .NET's built in image loader to load the image and check it for a palette. I expect that could be done fairly succinctly.

bbbradsmith commented 5 years ago

Feature added.