How to change colors's order in .BMP

You can talk about almost anything that you want to on this board.

Moderator: Moderators

Post Reply
fritzzz
Posts: 32
Joined: Sat Apr 08, 2023 11:41 am

How to change colors's order in .BMP

Post by fritzzz »

Hi ,


In a BMP image 16 colors, how to change the position of the colors ?

I would like invert order between the 0 and a another, for not having to redraw me
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: How to change colors's order in .BMP

Post by tepples »

You can do this in GNU Image Manipulation Program (GIMP).
  1. Open the image
  2. Colors > Map > Rearrange Colormap
  3. Drag the colors into place
  4. File > Export
fritzzz
Posts: 32
Joined: Sat Apr 08, 2023 11:41 am

Re: How to change colors's order in .BMP

Post by fritzzz »

Thanks :wink: , but this option is locked :|
User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: How to change colors's order in .BMP

Post by tokumaru »

Are you sure the image is indexed and not true-color?
tepples
Posts: 22708
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: How to change colors's order in .BMP

Post by tepples »

In GIMP, do Image > Mode > Indexed...
fritzzz
Posts: 32
Joined: Sat Apr 08, 2023 11:41 am

Re: How to change colors's order in .BMP

Post by fritzzz »

Hi,

Thank you everybody it works, with GIMP I can take a "256 color image" with 16 colors used and transform it into an "indexed 16 color image"


On the other hand TLP disturbs me the pixels, (they remove certain pixels on the pattern, merge certain neighboring pixels)
Last edited by fritzzz on Tue May 30, 2023 7:27 am, edited 2 times in total.
fritzzz
Posts: 32
Joined: Sat Apr 08, 2023 11:41 am

Re: How to change colors's order in .BMP

Post by fritzzz »

I just noticed in fact TLP is working with an 8bit .bmp with 256 index, I'm going back to tinkering

edit :
make a 8bit BMP and put your 16 colors index in 16 first index and it's good
GValiente
Posts: 11
Joined: Mon Sep 12, 2022 12:17 am

Re: How to change colors's order in .BMP

Post by GValiente »

fritzzz wrote: Sat May 27, 2023 3:29 am In a BMP image 16 colors, how to change the position of the colors ?

I would like invert order between the 0 and a another, for not having to redraw me
Usenti allows to do that with a Paint like user interface.
Windows only though: https://www.coranac.com/projects/usenti/
Post Reply