com.jhlabs.image
Class BlockFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.BlockFilter
All Implemented Interfaces:
java.awt.image.BufferedImageOp, java.lang.Cloneable

public class BlockFilter
extends AbstractBufferedImageOp

A Filter to pixellate images.


Constructor Summary
BlockFilter()
          Construct a BlockFilter.
BlockFilter(int blockSize)
          Construct a BlockFilter.
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 int getBlockSize()
          Get the pixel block size.
 void setBlockSize(int blockSize)
          Set the pixel block size.
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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