com.jhlabs.image
Class BlockFilter

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

public class BlockFilter
extends TransformFilter

A Filter to pixellate images.


Field Summary
 
Fields inherited from class com.jhlabs.image.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 com.jhlabs.image.TransformFilter
filter, getBilinear, getEdgeAction, getInterpolation, getNearestNeighbour, getOriginalSpace, getTransformedSpace, setEdgeAction, setInterpolation, setOriginalSpace, setTransformedSpace
 
Methods inherited from class com.jhlabs.image.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