Gradient options via MagickWand
Posted: 2019-02-19T10:11:18-07:00
The following is a similar post, but it was posted 12 years ago, so I'm posting this.
viewtopic.php?f=6&t=8149&p=24951&hilit= ... ent#p24951
I have installed the most recent version of ImageMagick (7.0.8-27 Q16 x64 2019-02-09) on a Windows 7 computer.
I would like to know if the gradient options can be used in MagickWand—the options that are listed on https://imagemagick.org/script/gradient.php, that can be set using the -define argument in command line.
I know that the following MagickWand code generates a gradient.
However, I've tried the following and it doesn't work.
The above code seems to ignore "-define gradient:direction=East" entirely, and it creates the gradient without applying the -define argument.
The following code generates an error.
Is it possible to use the gradient options via MagickWand? If so, how?
viewtopic.php?f=6&t=8149&p=24951&hilit= ... ent#p24951
I have installed the most recent version of ImageMagick (7.0.8-27 Q16 x64 2019-02-09) on a Windows 7 computer.
I would like to know if the gradient options can be used in MagickWand—the options that are listed on https://imagemagick.org/script/gradient.php, that can be set using the -define argument in command line.
I know that the following MagickWand code generates a gradient.
Code: Select all
MagickReadImage(magick_wand,"gradient:black-white");
Code: Select all
MagickReadImage(magick_wand,"gradient:black-white -define gradient:direction=East");
The following code generates an error.
Code: Select all
MagickReadImage(magick_wand,"-define gradient:direction=East gradient:black-white");
Magick exception description: unable to open image '-define gradient:direction=East gradient:black-white': Invalid argument @ error/blob.c/OpenBlob/3485
Magick exception severity: 435
Magick exception type: 435
Is it possible to use the gradient options via MagickWand? If so, how?