MagickWand
NAME
MagicWand - ImageMagick's MagickWand API Bindings for Perl6
SYNOPSIS
use v6;
use MagickWand;
# A new magic wand
my $wand = MagickWand.new;
# Read an image
$wand.read("examples/images/aero1.jpg");
# Lighten dark areas
$wand.auto-gamma;
# And then write a new image
$wand.write("output.png");
# And cleanup on exit
LEAVE {
$wand.cleanup if $wand.defined;
}
DESCRIPTION
This provides a Perl 6 object-oriented [NativeCall]( http://doc.perl6.org/language/nativecall)-based API for ImageMagick's [MagickWand C API](http://www.imagemagick.org/script/magick-wand.php).
adaptive-resize
This is a helper method for adaptive-resize. For example
adaptive-resize(0.5); # Resize to 50% of original size
resize
$wand.resize(320, 240); # Scale to 320x240
Scales an image to the desired percentage of the current dimensions with one of these filters: Bessel, Blackman, Box, Catrom, CubicGaussian, Hanning, Hermite, Lanczos, Mitchell, PointQuandratic, Sinc, Triangle
resize
$wand.resize(0.6); # 60% of original dimensions
Scales an image to the desired percentage of the current dimensions with one of these filters: Bessel, Blackman, Box, Catrom, CubicGaussian, Hanning, Hermite, Lanczos, Mitchell, PointQuandratic, Sinc, Triangle
cleanup
TODO cleanup description