类 CropFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.CropFilter
-
- 所有已实现的接口:
BufferedImageOp,Cloneable
public class CropFilter extends AbstractBufferedImageOp
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.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)intgetHeight()Get the height of the crop rectangle.intgetWidth()Get the width of the crop rectangle.intgetX()Get the left edge of the crop rectangle.intgetY()Get the top edge of the crop rectangle.voidsetHeight(int height)Set the height of the crop rectangle.voidsetWidth(int width)Set the width of the crop rectangle.voidsetX(int x)Set the left edge of the crop rectangle.voidsetY(int y)Set the top edge of the crop rectangle.StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
构造器详细资料
-
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
-
-
方法详细资料
-
setX
public void setX(int x)
Set the left edge of the crop rectangle.- 参数:
x- the left edge of the crop rectangle- 另请参阅:
getX()
-
getX
public int getX()
Get the left edge of the crop rectangle.- 返回:
- the left edge of the crop rectangle
- 另请参阅:
setX(int)
-
setY
public void setY(int y)
Set the top edge of the crop rectangle.- 参数:
y- the top edge of the crop rectangle- 另请参阅:
getY()
-
getY
public int getY()
Get the top edge of the crop rectangle.- 返回:
- the top edge of the crop rectangle
- 另请参阅:
setY(int)
-
setWidth
public void setWidth(int width)
Set the width of the crop rectangle.- 参数:
width- the width of the crop rectangle- 另请参阅:
getWidth()
-
getWidth
public int getWidth()
Get the width of the crop rectangle.- 返回:
- the width of the crop rectangle
- 另请参阅:
setWidth(int)
-
setHeight
public void setHeight(int height)
Set the height of the crop rectangle.- 参数:
height- the height of the crop rectangle- 另请参阅:
getHeight()
-
getHeight
public int getHeight()
Get the height of the crop rectangle.- 返回:
- the height of the crop rectangle
- 另请参阅:
setHeight(int)
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-