[SOLVED] Magick++: evaluate

Magick++ is an object-oriented C++ interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick++.
Post Reply
olear
Posts: 58
Joined: 2015-05-24T10:56:42-07:00
Authentication code: 6789

[SOLVED] Magick++: evaluate

Post by olear » 2015-08-29T07:37:04-07:00

Hi, got some old scripts that needs to be converted to Magick++, mostly no issues, but I hit the wall with evaluate.

The current script does this:
... -evaluate multiply <value> ...

But how does this translate to Magick++? Sorry if this is a stupid question :) (couldn't find any info)
Last edited by olear on 2015-08-29T09:38:17-07:00, edited 1 time in total.

User avatar
dlemstra
Posts: 1563
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Magick++: evaluate

Post by dlemstra » 2015-08-29T08:14:04-07:00

You should use the quantumOperator method for that. I just submitted a patch to rename that method to evaluate in ImageMagick 7.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate

olear
Posts: 58
Joined: 2015-05-24T10:56:42-07:00
Authentication code: 6789

Re: Magick++: evaluate

Post by olear » 2015-08-29T09:37:44-07:00

Thanks for the info (and patch), I found the quantumOperator, seems to work :)

Post Reply