org.apache.cocoon.reading.imageop
Class CropOperation

java.lang.Object
  extended by 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 $

Field Summary
 
Fields inherited from interface org.apache.cocoon.reading.imageop.ImageOperation
ROLE
 
Constructor Summary
CropOperation()
           
 
Method Summary
 WritableRaster apply(WritableRaster image)
           
 String getKey()
           
 void setPrefix(String prefix)
           
 void setup(Parameters params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CropOperation

public CropOperation()
Method Detail

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.