public class BlockFilter extends AbstractBufferedImageOp
Constructor and Description |
---|
BlockFilter()
Construct a BlockFilter.
|
BlockFilter(int blockSize)
Construct a BlockFilter.
|
Modifier and Type | Method and Description |
---|---|
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() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
public BlockFilter()
public BlockFilter(int blockSize)
blockSize
- the number of pixels along each block edgepublic void setBlockSize(int blockSize)
blockSize
- the number of pixels along each block edge, min-value 1, max-value 100+getBlockSize()
public int getBlockSize()
setBlockSize(int)
public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString
in class java.lang.Object