Page 1 of 1
Gradients using MagickWand?
I would like to create a box using drawing hand ... and would like to use gradient color. It's simple when using the command line, but I'm not so sure if this could be done using magickwand (for php).
I hope someone can help.
Gradient support for drawing in incomplete. In the mean-time you can create a linear gradient with a MagickReadImage() with a filename something like this: gradient:yellow-green. Be sure to set the gradient size with MagickSetSize().
Thanks, I figured that out yesterday...that it can be done by using magickreadimage.
Does the latest imagick version support transparent gradients? The one I have installed now, doesn't seem to.
gradient direction - can that be done without rotating the actual image?
Yes gradient can produce transparent gradients. However until SVG gradient additions are done, you will have to do the gradient rotations yourself.
Many techniques are looked at in the command line IM examples, Gradient Canvases
http://www.cit.gu.edu.au/~anthony/graph ... /#gradient
You should be able to map these into MagicWand without too much difficulty