The image is stored as png and has a 256 colors palette.
I need to change some of the colors.
At present I load the image, then I use Read/Write pixel fast (yes, Blitz2d has these commands)
The image is big, then it's quite a slow way...
...
Using an image editor, it's easy to change a color in the whole image since they're mapped in the palette.
You don't need to change every single pixel, but you can simply change that color in the palette.
...
Well, the image saved in png format should have some kind of palette containing the colors.
I wonder if I can load the image using a different (e.g. external) palette.
Or change the palette in the file (without loading the image in memory).
I need to change some of the colors.
At present I load the image, then I use Read/Write pixel fast (yes, Blitz2d has these commands)
The image is big, then it's quite a slow way...
...
Using an image editor, it's easy to change a color in the whole image since they're mapped in the palette.
You don't need to change every single pixel, but you can simply change that color in the palette.
...
Well, the image saved in png format should have some kind of palette containing the colors.
I wonder if I can load the image using a different (e.g. external) palette.
Or change the palette in the file (without loading the image in memory).