org.apache.cocoon.reading.imageop
Class CropOperation
java.lang.Object
org.apache.cocoon.reading.imageop.CropOperation
- All Implemented Interfaces:
- Component, ImageOperation
public class CropOperation
- extends Object
- implements ImageOperation
The Crop operation crops the image according to the specified aspect ratio.
A ratio of 2 means, the height of the image is twice the width, a ratio of 0.5
means the height of the image is half of the width.
Add summary documentation here.
- Version:
- $Id: CropOperation.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CropOperation
public CropOperation()
setPrefix
public void setPrefix(String prefix)
- Specified by:
setPrefix
in interface ImageOperation
setup
public void setup(Parameters params)
throws ProcessingException
- Specified by:
setup
in interface ImageOperation
- Throws:
ProcessingException
apply
public WritableRaster apply(WritableRaster image)
- Specified by:
apply
in interface ImageOperation
getKey
public String getKey()
- Specified by:
getKey
in interface ImageOperation
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.