* Daniel Malcher ([EMAIL PROTECTED]) [061019 21:24]:
> what is the PerlMagick equivalent for the 'swap' command line option of
> convert?
PerlMagick creates an "image" as reference to an array.
In a normal perl array, say @x, you can do @x[3,4] = @x[4,3]
( to take one element you use $x[], for a slice you need @x[] )
The reference makes it a little trickier
@$image[3,4] = @$image[4,3]
For single element references, $$x[3] is equivalent to $x->[3]
But that does not work for slices: in this case you have to stick
to the traditional syntax without arrow.
> Are there other methods to manipulate the image oder?
shift @$image; # remove from front
push @$image, @$other; # append image sequences etc
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
[EMAIL PROTECTED] [EMAIL PROTECTED]
http://Mark.Overmeer.net http://solutions.overmeer.net
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users