Package com.jhlabs.image
Class BlockFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.BlockFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
A Filter to pixellate images.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a BlockFilter.BlockFilter(int blockSize) Construct a BlockFilter. -
Method Summary
Modifier and TypeMethodDescriptionfilter(BufferedImage src, BufferedImage dst) intGet the pixel block size.voidsetBlockSize(int blockSize) Set the pixel block size.toString()Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
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
-
toString
-