2004.01.14 12:01 "[Tiff] COLORMAP and byte padding", by Stephan Assmus

2004.01.14 19:48 "Re: [Tiff] COLORMAP and byte padding", by Andy Cave

Hi Marti.

Your code will produce false results. Although I'd divide by 256, I would not multiple by 256 (which is where your errors come in). You'd still need to multiple by 257 so as to re-map the range back correctly, so a16_by256 should use the same calculation as a16_by257.

_andy.