Page 1 of 1

[SOLVED] Magick++: evaluate

Posted: 2015-08-29T07:37:04-07:00
by olear
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)

Re: Magick++: evaluate

Posted: 2015-08-29T08:14:04-07:00
by dlemstra
You should use the quantumOperator method for that. I just submitted a patch to rename that method to evaluate in ImageMagick 7.

Re: Magick++: evaluate

Posted: 2015-08-29T09:37:44-07:00
by olear
Thanks for the info (and patch), I found the quantumOperator, seems to work :)