railo.runtime.img.filter
Class BlockFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.TransformFilter
          extended by railo.runtime.img.filter.BlockFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class BlockFilter
extends TransformFilter
implements DynFiltering

A Filter to pixellate images.


Field Summary
 
Fields inherited from class railo.runtime.img.filter.TransformFilter
BILINEAR, NEAREST_NEIGHBOUR
 
Constructor Summary
BlockFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int getBlockSize()
          Get the pixel block size.
 void setBlockSize(int blockSize)
          Set the pixel block size.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.TransformFilter
filter, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockFilter

public BlockFilter()
Method Detail

setBlockSize

public void setBlockSize(int blockSize)
Set the pixel block size.

Parameters:
blockSize - the number of pixels along each block edge
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)

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class TransformFilter
Throws:
PageException


Copyright © 2012 Railo