com.jhlabs.image
Class CropFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.CropFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class CropFilter
extends AbstractBufferedImageOp

A filter which crops an image to a given rectangle.


Constructor Summary
CropFilter()
           
CropFilter(int x, int y, int width, int height)
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 int getHeight()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CropFilter

public CropFilter()

CropFilter

public CropFilter(int x,
                  int y,
                  int width,
                  int height)
Method Detail

setX

public void setX(int x)

getX

public int getX()

setY

public void setY(int y)

getY

public int getY()

setWidth

public void setWidth(int width)

getWidth

public int getWidth()

setHeight

public void setHeight(int height)

getHeight

public int getHeight()

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object