类 CropFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.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.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      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()  
      • 从类继承的方法 java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 构造器详细资料

      • 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 rectangle
        y - the top edge of the crop rectangle
        width - the width of the crop rectangle
        height - 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 java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object