Class BlockFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

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

    • BlockFilter

      public BlockFilter()
      Construct a BlockFilter.
    • BlockFilter

      public BlockFilter(int blockSize)
      Construct a BlockFilter.
      Parameters:
      blockSize - the number of pixels along each block edge
  • Method Details

    • setBlockSize

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

      public int getBlockSize()
      Get the pixel block size.
      Returns:
      the number of pixels along each block edge
      See Also:
    • filter

      public BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object