Page 1 of 1

Accessing Palette and pixel color index

Posted: 2013-03-03T22:14:28-07:00
by pierrej
hi!

While working on conversion tool for another library, I have digging the API doc for a while and I am not sure what is the actual way to fetch the following info for PaletteMatte and Palette images:
  • Fetch the full palette (8 and 16bits palette, f.e. created from a png and gif data)

    Fetch the color index for a given pixel
Do I have to do it "manually" using the MagickCore APIs or is there something I missed in the Wand APIs? I read in some older posts that there may have no guarantee than the palette or indexes are still valid in the lifetime of a given image instance.

Thanks!

ps: ordered lists button does not seem to work, same for list item