Package com.jhlabs.image
Class CropFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.CropFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.Cloneable
public class CropFilter extends AbstractBufferedImageOp
A filter which crops an image to a given rectangle.
-
-
Constructor Summary
Constructors Constructor Description CropFilter()CropFilter(int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagefilter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)intgetHeight()intgetWidth()intgetX()intgetY()voidsetHeight(int height)voidsetWidth(int width)voidsetX(int x)voidsetY(int y)java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
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:
toStringin classjava.lang.Object
-
-