"nirali jivrajani" on wrote...
| Hello,
| I am new to imagemagick and need to draw transparent
circles on an
| existing image. I managed to do that using composite
function but i need
| to draw circles.
| I used the following syntax:
|
| `convert -size $size xc:none -fill $fill_color -stroke
$border_color
| -draw "circle $_[0],$_[1] $radius,$_[1]"
$$_circle.gif`;
| `composite -dissolve $dissolve -colorspace
transparent
| $$_circle.gif
| $$_$ARGV[0] -matte $$-out_$ARGV[0]`;
|
| It would be a great help if i could straight away draw
transparent
| circles using perlmagick cammands.
|
| thanks
|
You can not draw transparent circles!!!
It is like using an invisible paint on an image, nothing
happens.
What you want to do is 'cut out' a circle from an image.
See Alpha Composition Dst_Out (or 'erase')
http://www.cit.gu.edu.au/~anthony/graphics/im
agick6/compose/#dstout
In particular, see the draw a 'moon' example!
Anthony Thyssen ( System Programmer ) <A.Thyssen griffith.edu.au>
-----------------------------------------------------------
------------------
The generation of random numbers is too important to be
left to chance.
-- Tom Christiansen
<tchrist mox.perl.com>
Anyone attempting to generate random numbers by
deterministic means is,
of course, living in a state of sin. --
Von Neumann
-----------------------------------------------------------
------------------
Anthony's Home is his Castle http://www.cit.gu.
edu.au/~anthony/
_______________________________________________
Magick-users mailing list
Magick-users imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick
-users
|