Package com.jhlabs.image
Class BlockFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.TransformFilter
-
- com.jhlabs.image.BlockFilter
-
- All Implemented Interfaces:
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, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, transformedSpace, WRAP, ZERO
-
-
Constructor Summary
Constructors Constructor Description BlockFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBlockSize()Get the pixel block sizevoidsetBlockSize(int blockSize)Set the pixel block sizejava.lang.StringtoString()protected voidtransform(int x, int y, java.awt.Point out)protected voidtransformInverse(int x, int y, float[] out)-
Methods inherited from class com.jhlabs.image.TransformFilter
filter, filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpace
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
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
-
transform
protected void transform(int x, int y, java.awt.Point out)
-
transformInverse
protected void transformInverse(int x, int y, float[] out)- Specified by:
transformInversein classTransformFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-