Accessing Palette and pixel color index

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Locked
pierrej
Posts: 1
Joined: 2013-03-03T22:04:22-07:00
Authentication code: 6789

Accessing Palette and pixel color index

Post 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

Locked