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.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
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:
toString
in classjava.lang.Object
-
-