public class CropFilter extends AbstractBufferedImageOp
| Constructor and Description |
|---|
CropFilter()
Construct a CropFilter.
|
CropFilter(int x,
int y,
int width,
int height)
Construct a CropFilter.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
int |
getHeight()
Get the height of the crop rectangle.
|
int |
getWidth()
Get the width of the crop rectangle.
|
int |
getX()
Get the left edge of the crop rectangle.
|
int |
getY()
Get the top edge of the crop rectangle.
|
void |
setHeight(int height)
Set the height of the crop rectangle.
|
void |
setWidth(int width)
Set the width of the crop rectangle.
|
void |
setX(int x)
Set the left edge of the crop rectangle.
|
void |
setY(int y)
Set the top edge of the crop rectangle.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColorpublic CropFilter()
public CropFilter(int x,
int y,
int width,
int height)
x - the left edge of the crop rectangley - the top edge of the crop rectanglewidth - the width of the crop rectangleheight - the height of the crop rectanglepublic void setX(int x)
x - the left edge of the crop rectanglegetX()public int getX()
setX(int)public void setY(int y)
y - the top edge of the crop rectanglegetY()public int getY()
setY(int)public void setWidth(int width)
width - the width of the crop rectanglegetWidth()public int getWidth()
setWidth(int)public void setHeight(int height)
height - the height of the crop rectanglegetHeight()public int getHeight()
setHeight(int)public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString in class java.lang.Object