Package com.jhlabs.image
Class BlockFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.TransformFilter
com.jhlabs.image.BlockFilter
- All Implemented Interfaces:
BufferedImageOp
,Cloneable
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 -
Method Summary
Modifier and TypeMethodDescriptionint
Get the pixel block sizevoid
setBlockSize
(int blockSize) Set the pixel block sizetoString()
protected void
protected void
transformInverse
(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
-
Constructor Details
-
BlockFilter
public BlockFilter()
-
-
Method Details
-
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
-
transformInverse
protected void transformInverse(int x, int y, float[] out) - Specified by:
transformInverse
in classTransformFilter
-
toString
-