[Partially solved] X windows colormap - True Color 16 bit
Posted: 2011-08-12T09:03:46-07:00
in the "Usage web docs" I have found this :
---------------------------------------------------
TrueColor 16bit Colormap
A similar uniform colormap to the '332 colormap' above is used by X windows in a rarely used 16 bit visual class. In this case, 16 bits are used for the color index which is divided into 5 bits for red, 5 for green, and 6 for blue.
------------------------------------------------------------------------------
But I can not know how to calculate it ...
I have tried something like this :
convert -size 16x16 xc: -channel R -fx "(i%32)/31"
-channel G -fx "(j%32)/31"
-channel B -fx "((i>>6&1)|(j>>6&6))/7" -scale 500% colormap_X.png
But I supposed it not right ....
My real problem is that I have an old X windows legacy application that imports GIF files but no matter what I try I simply do not have the correct color ...
Although I have something read in it gives me the wrong palette ...
Nonetheless all the other different image viewers gives the correct colors ....
My point is that my Xwindows app simply remaps the GIF into their own internal palette (?!?!?! )
I tried the "netscape:" option and built the 332 palette ...
But I am getting out of ideas ...
---------------------------------------------------
TrueColor 16bit Colormap
A similar uniform colormap to the '332 colormap' above is used by X windows in a rarely used 16 bit visual class. In this case, 16 bits are used for the color index which is divided into 5 bits for red, 5 for green, and 6 for blue.
------------------------------------------------------------------------------
But I can not know how to calculate it ...
I have tried something like this :
convert -size 16x16 xc: -channel R -fx "(i%32)/31"
-channel G -fx "(j%32)/31"
-channel B -fx "((i>>6&1)|(j>>6&6))/7" -scale 500% colormap_X.png
But I supposed it not right ....
My real problem is that I have an old X windows legacy application that imports GIF files but no matter what I try I simply do not have the correct color ...
Although I have something read in it gives me the wrong palette ...
Nonetheless all the other different image viewers gives the correct colors ....
My point is that my Xwindows app simply remaps the GIF into their own internal palette (?!?!?! )
I tried the "netscape:" option and built the 332 palette ...
But I am getting out of ideas ...