Package com.jhlabs.image
Class BlockFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- 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
Constructors Constructor Description BlockFilter()
Construct a BlockFilter.BlockFilter(int blockSize)
Construct a BlockFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setBlockSize
public void setBlockSize(int blockSize)
Set the pixel block size.- Parameters:
blockSize
- the number of pixels along each block edge, min-value 1, max-value 100+- 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 classjava.lang.Object
-
-