Posted: 2006-10-24T10:01:39-07:00
Use writePixels() with the RGBQuantum type to write the image pixels to a buffer. Make sure the image depth is 8 before you call writePixels().
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://download.imagemagick.org/discourse-server/
https://download.imagemagick.org/discourse-server/viewtopic.php?t=7665