IndexPacket
Posted: 2016-10-24T10:30:30-07:00
hello again to the forum,
I'm trying to extract the ColorMapIndex of a PNG-/GIF-image for any seperate pixel. received help on my last question - it was possible to read the index for some special produced png-images - but it doesn't work in general.
asuming the "MagickGetImageColors(wand)" - which is the total number of colors in the color map - is small up to an certain level - the type IndexPacket is type of something unsigned integer or unsigned char.
but the documentation is unclear and talks about something of type array - I didn't found the reference to type IndexPacket by searching my system and googe-ling around.
how could I access a variable of type IndexPacket - to get the integer information the color of that pixel is between 0 and MagickGetImageColors(wand)] ?
thank you for help
murmel
I'm trying to extract the ColorMapIndex of a PNG-/GIF-image for any seperate pixel. received help on my last question - it was possible to read the index for some special produced png-images - but it doesn't work in general.
asuming the "MagickGetImageColors(wand)" - which is the total number of colors in the color map - is small up to an certain level - the type IndexPacket is type of something unsigned integer or unsigned char.
but the documentation is unclear and talks about something of type array - I didn't found the reference to type IndexPacket by searching my system and googe-ling around.
how could I access a variable of type IndexPacket - to get the integer information the color of that pixel is between 0 and MagickGetImageColors(wand)] ?
thank you for help
murmel