Hi all,
Is it possible to export palettes (*.smp) in a readable form (ascii, csv, excel)? If not, I would like to make a small program in Delphi to output the palette as csv (Fields: Value, R, G, B).
Thanks! Rolf
P.S. I use Idrisi Taiga
Hi all,
Is it possible to export palettes (*.smp) in a readable form (ascii, csv, excel)? If not, I would like to make a small program in Delphi to output the palette as csv (Fields: Value, R, G, B).
Thanks! Rolf
P.S. I use Idrisi Taiga
Hi Rolf,
We accidentally deleted your message about using the API's CallPick. If you repost that question, I will reply to it. In the meantime, I will research the answer to this question.
Tammy Woodard
Clark Labs
For an .SMP file, there is an 18 byte header:
Then for each palette index (from 0 to maxindex, without skipping) do a 3-byte sequence:
red value (1-byte)
green value (1-byte)
blue value (1-byte)
The palette index is not stored, but is implied by the order.