2004.12.12 10:44 "[Tiff] Question about colormap", by Artem Y. Pervin

2004.12.12 10:44 "[Tiff] Question about colormap", by Artem Y. Pervin

Hello, everyone.

I`ve a little question about TIFF`s colormap.

Suppose I got RGBA raster (width*height) somehow, and now wish to store it in a file, using just one byte per pixel and a colormap. Is there are any issues (I failed to find :( ) about working with palettes in libtiff?

Actually I`m interesting in how to generate a colormap. Suppose I know every different color in my raster, and amount of these colors is always less than 255, so its not gonna be a big problem to make such colormap, but how would I store it into TIFF, and then how to store original raster?

Thanks!

С уважением,
Первин Артем
mailto:versus@dot.pereslavl.ru