Class BlockFilter

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

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

      • 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 Detail

      • setBlockSize

        public void setBlockSize​(int blockSize)
        Set the pixel block size.
        Parameters:
        blockSize - the number of pixels along each block edge, min-value 1, max-value 100+
        See Also:
        getBlockSize()
      • getBlockSize

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

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

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