j2d.filters
Class BlockFilter

java.lang.Object
  extended by j2d.filters.AbstractBufferedImageOp
      extended by j2d.filters.TransformFilter
          extended by j2d.filters.BlockFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable

public class BlockFilter
extends TransformFilter

A Filter to pixellate images.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class j2d.filters.TransformFilter
BILINEAR, CLAMP, NEAREST_NEIGHBOUR, WRAP, ZERO
 
Constructor Summary
BlockFilter()
           
 
Method Summary
 int getBlockSize()
          Get the pixel block size
 void setBlockSize(int blockSize)
          Set the pixel block size
 java.lang.String toString()
           
 
Methods inherited from class j2d.filters.TransformFilter
filter, getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace
 
Methods inherited from class j2d.filters.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockFilter

public BlockFilter()
Method Detail

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

toString

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