Page 1 of 1

MagickSetImagePixels documentation

Posted: 2007-09-13T15:30:26-07:00
by mkoppanen
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.
There seems to be an error unless the function actually returns false on success.

Re: MagickSetImagePixels documentation

Posted: 2007-09-13T17:44:25-07:00
by magick
Most ImageMagick methods return 0 on success 1 on failure.

Re: MagickSetImagePixels documentation

Posted: 2007-09-14T00:45:12-07:00
by mkoppanen
magick wrote:Most ImageMagick methods return 0 on success 1 on failure.
It seems like most of the MagickWand API methods return MagickTrue on success. That part of documentation was quoted from that manual:

http://www.imagemagick.org/api/magick-i ... magePixels

Is this inconsistency compared to the rest of the API or is my head just thick ? :lol: