org.riotfamily.common.image
Class ImageMagickCropper

java.lang.Object
  extended by org.riotfamily.common.image.ImageMagickCropper
All Implemented Interfaces:
ImageCropper

public class ImageMagickCropper
extends Object
implements ImageCropper

Author:
Felix Gnass [fgnass at neteye dot de]

Constructor Summary
ImageMagickCropper(ImageMagick imageMagick)
           
 
Method Summary
 void cropImage(File source, File dest, int width, int height, int x, int y, int scaledWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageMagickCropper

public ImageMagickCropper(ImageMagick imageMagick)
Method Detail

cropImage

public void cropImage(File source,
                      File dest,
                      int width,
                      int height,
                      int x,
                      int y,
                      int scaledWidth)
               throws IOException
Specified by:
cropImage in interface ImageCropper
Throws:
IOException