There seems to be an error unless the function actually returns false on success.MagickSetImagePixels() accepts pixel data and stores it in the image at the location you specify. The method returns MagickFalse on success otherwise MagickTrue if an error is encountered. The pixel data can be either char, short int, int, long, float, or double in the order specified by map.
MagickSetImagePixels documentation
MagickSetImagePixels documentation
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org
Re: MagickSetImagePixels documentation
Most ImageMagick methods return 0 on success 1 on failure.
Re: MagickSetImagePixels documentation
It seems like most of the MagickWand API methods return MagickTrue on success. That part of documentation was quoted from that manual:magick wrote:Most ImageMagick methods return 0 on success 1 on failure.
http://www.imagemagick.org/api/magick-i ... magePixels
Is this inconsistency compared to the rest of the API or is my head just thick ?
Mikko Koppanen
My blog: http://valokuva.org
My blog: http://valokuva.org