Class BlockFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class BlockFilter extends TransformFilter
A Filter to pixellate images.
  • Constructor Details

    • BlockFilter

      public BlockFilter()
  • Method Details

    • setBlockSize

      public void setBlockSize(int blockSize)
      Set the pixel block size
      Parameters:
      blockSize - the number of pixels along each block edge
    • getBlockSize

      public int getBlockSize()
      Get the pixel block size
      Returns:
      the number of pixels along each block edge
    • transform

      protected void transform(int x, int y, Point out)
    • transformInverse

      protected void transformInverse(int x, int y, float[] out)
      Specified by:
      transformInverse in class TransformFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object