Search found 2 matches

by rix
2018-07-06T16:27:04-07:00
Forum: Magick++
Topic: [SOLVED] How to get pixels index/indices of a quantized image?
Replies: 2
Views: 6844

Re: How to get pixels index/indices of a quantized image?

I've solved it myself. After reading through the quantization source code, I found out the correct way to iterate through the "Magick::Quantum *pixels" array. Since IM's Image structure can store each pixel in different colorspaces and presentations at the same time. There may be more than 3 or 4 ch...
by rix
2018-07-06T08:49:53-07:00
Forum: Magick++
Topic: [SOLVED] How to get pixels index/indices of a quantized image?
Replies: 2
Views: 6844

[SOLVED] How to get pixels index/indices of a quantized image?

I'm writing a program to convert PNG color images to a unique YCrCbA bitmap format that ImageMagick cannot directly output. So I need to manually construct the color index map table and then write each pixel in its color index number. The index should be 1 byte thus it limits to 256 colors. Here is ...