Page 1 of 1

Swapping colours in colour map

Posted: Fri Jun 25, 2004 8:36 am
by diftimi
Hello all,

I'm new to posting so if it's not entirely correct what I'm doing don't shoot me on sight :).

I have a question: is there any way to swap 2 colors into a palette using the palette editor, for example?
I need to swap for example color_0 with color_128 in an indexed bitmap.
Of course, I can quickly write a program that does it, it's not complicated, but I need this information for somebody who's not a programmer.

Thank you very much,
Dragos Iftimi.

Re: Palette operations on indexed images (png/bmp/etc)

Posted: Fri Jun 25, 2004 10:49 am
by xnview
diftimi wrote:I have a question: is there any way to swap 2 colors into a palette using the palette editor, for example?
I need to swap for example color_0 with color_128 in an indexed bitmap.
Of course, I can quickly write a program that does it, it's not complicated, but I need this information for somebody who's not a programmer.
Yes, open your picture in XnView, and Image/Edit colormap.
Pierre.

Re: Palette operations on indexed images (png/bmp/etc)

Posted: Fri Jun 25, 2004 2:12 pm
by helmut
xnview wrote:
diftimi wrote:I have a question: is there any way to swap 2 colors into a palette using the palette editor, for example?
I need to swap for example color_0 with color_128 in an indexed bitmap.
Of course, I can quickly write a program that does it, it's not complicated, but I need this information for somebody who's not a programmer.
Yes, open your picture in XnView, and Image/Edit colormap.
Pierre.
Some addition:
In the colourmap dialog, you have to edit and swap the RGB colour values manually. At the moment, there is no automated or more comfortable way in XnView for swapping two colours in the colour map.