com.jhlabs.image
Class CropFilter
- BufferedImageOp, Cloneable
A filter which crops an image to a given rectangle.
CropFilter()- Construct a CropFilter.
|
CropFilter(int x, int y, int width, int height)- Construct a CropFilter.
|
BufferedImage | filter(BufferedImage src, 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.
|
String | toString()
|
CropFilter
public CropFilter()
Construct a CropFilter.
CropFilter
public CropFilter(int x,
int y,
int width,
int height) Construct a CropFilter.
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
filter
public BufferedImage filter(BufferedImage src,
BufferedImage dst)
getHeight
public int getHeight()
Get the height of the crop rectangle.
- the height of the crop rectangle
getWidth
public int getWidth()
Get the width of the crop rectangle.
- the width of the crop rectangle
getX
public int getX()
Get the left edge of the crop rectangle.
- the left edge of the crop rectangle
getY
public int getY()
Get the top edge of the crop rectangle.
- the top edge of the crop rectangle
setHeight
public void setHeight(int height)
Set the height of the crop rectangle.
height - the height of the crop rectangle
setWidth
public void setWidth(int width)
Set the width of the crop rectangle.
width - the width of the crop rectangle
setX
public void setX(int x)
Set the left edge of the crop rectangle.
x - the left edge of the crop rectangle
setY
public void setY(int y)
Set the top edge of the crop rectangle.
y - the top edge of the crop rectangle
toString
public String toString()