[magick-users] Draw random line stroke on image
Anthony Thyssen
anthony at griffith.edu.au
Tue Nov 27 14:54:55 PST 2007
"howard chen" on wrote...
| Hello,
|
| I want to araw random line stroke on image, just like the Yahoo's Captcha
|
| e.g.
|
| Just like this image:
| http://upload.wikimedia.org/wikipedia/commons/b/b6/Modern-captcha.jpg
|
| Any recommendation?
|
First that line is not straight, not even if you happened to straighten
the text.
Second it isn't a problem, but you will need to do some calculations
yourself. All you need is to pick three corrdinates and draw an arc
through them.
See IM Examples, Draw Primatives for all the information you need in
drawing lines.
http://imagemagick.org/Usage/draw/
Anthony Thyssen ( System Programmer ) <A.Thyssen at griffith.edu.au>
-----------------------------------------------------------------------------
Judith looked at the demons and shook her head. "I'm glad we didn't
build four processors. I'm not sure I could take a barbershop
quartet!" -- Rick Cook, "The Wizardry Compiled"
-----------------------------------------------------------------------------
Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
More information about the Magick-users
mailing list