Class OffsetFilter

  • All Implemented Interfaces:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class OffsetFilter
    extends TransformFilter
    • Constructor Detail

      • OffsetFilter

        public OffsetFilter()
      • OffsetFilter

        public OffsetFilter​(int xOffset,
                            int yOffset,
                            boolean wrap)
    • Method Detail

      • setXOffset

        public void setXOffset​(int xOffset)
      • getXOffset

        public int getXOffset()
      • setYOffset

        public void setYOffset​(int yOffset)
      • getYOffset

        public int getYOffset()
      • setWrap

        public void setWrap​(boolean wrap)
      • getWrap

        public boolean getWrap()
      • transformInverse

        protected void transformInverse​(int x,
                                        int y,
                                        float[] out)
        Description copied from class: TransformFilter
        Inverse transform a point. This method needs to be overriden by all subclasses.
        Specified by:
        transformInverse in class TransformFilter
        Parameters:
        x - the X position of the pixel in the output image
        y - the Y position of the pixel in the output image
        out - the position of the pixel in the input image
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
        Specified by:
        filter in interface java.awt.image.BufferedImageOp
        Overrides:
        filter in class TransformFilter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object