Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.CropFilter
public class CropFilter
extends AbstractBufferedImageOp
Constructor Summary | |
| |
|
Method Summary | |
BufferedImage |
|
int |
|
int |
|
int |
|
int |
|
void |
|
void |
|
void |
|
void |
|
String |
|
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp | |
clone , createCompatibleDestImage , getBounds2D , getPoint2D , getRGB , getRenderingHints , setRGB |
public CropFilter()
Construct a CropFilter.
public CropFilter(int x, int y, int width, int height)
Construct a CropFilter.
- Parameters:
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 rectangle
public BufferedImage filter(BufferedImage src, BufferedImage dst)
public int getHeight()
Get the height of the crop rectangle.
- Returns:
- the height of the crop rectangle
- See Also:
setHeight(int)
public int getWidth()
Get the width of the crop rectangle.
- Returns:
- the width of the crop rectangle
- See Also:
setWidth(int)
public int getX()
Get the left edge of the crop rectangle.
- Returns:
- the left edge of the crop rectangle
- See Also:
setX(int)
public int getY()
Get the top edge of the crop rectangle.
- Returns:
- the top edge of the crop rectangle
- See Also:
setY(int)
public void setHeight(int height)
Set the height of the crop rectangle.
- Parameters:
height
- the height of the crop rectangle
- See Also:
getHeight()
public void setWidth(int width)
Set the width of the crop rectangle.
- Parameters:
width
- the width of the crop rectangle
- See Also:
getWidth()
public void setX(int x)
Set the left edge of the crop rectangle.
- Parameters:
x
- the left edge of the crop rectangle
- See Also:
getX()
public void setY(int y)
Set the top edge of the crop rectangle.
- Parameters:
y
- the top edge of the crop rectangle
- See Also:
getY()
public String toString()