MagickSetImagePixels documentation

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

MagickSetImagePixels documentation

Post by mkoppanen » 2007-09-13T15:30:26-07:00

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.
Mikko Koppanen
My blog: http://valokuva.org

User avatar
magick
Site Admin
Posts: 10922
Joined: 2003-05-31T11:32:55-07:00

Re: MagickSetImagePixels documentation

Post by magick » 2007-09-13T17:44:25-07:00

Most ImageMagick methods return 0 on success 1 on failure.

mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: MagickSetImagePixels documentation

Post by mkoppanen » 2007-09-14T00:45:12-07:00

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:
Mikko Koppanen
My blog: http://valokuva.org

Post Reply