railo.runtime.img.filter
Class CrystallizeFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.WholeImageFilter
          extended by railo.runtime.img.filter.CellularFilter
              extended by railo.runtime.img.filter.CrystallizeFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering, Function2D

public class CrystallizeFilter
extends CellularFilter
implements DynFiltering

A filter which applies a crystallizing effect to an image, by producing Voronoi cells filled with colours from the image.


Nested Class Summary
 
Nested classes/interfaces inherited from class railo.runtime.img.filter.CellularFilter
CellularFilter.Point
 
Field Summary
 
Fields inherited from class railo.runtime.img.filter.CellularFilter
amount, bias, distancePower, gain, HEXAGONAL, OCTAGONAL, RANDOM, SQUARE, TRIANGULAR, turbulence, useColor
 
Constructor Summary
CrystallizeFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int getEdgeColor()
           
 float getEdgeThickness()
           
 boolean getFadeEdges()
           
 int getPixel(int x, int y, int[] inPixels, int width, int height)
           
 void setEdgeColor(int edgeColor)
           
 void setEdgeThickness(float edgeThickness)
           
 void setFadeEdges(boolean fadeEdges)
           
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.CellularFilter
clone, evaluate, getAmount, getAngle, getAngleCoefficient, getCoefficient, getColormap, getDistancePower, getF1, getF2, getF3, getF4, getGradientCoefficient, getGridType, getRandomness, getScale, getStretch, getTurbulence, setAmount, setAngle, setAngleCoefficient, setCoefficient, setColormap, setDistancePower, setF1, setF2, setF3, setF4, setGradientCoefficient, setGridType, setRandomness, setScale, setStretch, setTurbulence, turbulence2
 
Methods inherited from class railo.runtime.img.filter.WholeImageFilter
filter
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CrystallizeFilter

public CrystallizeFilter()
Method Detail

setEdgeThickness

public void setEdgeThickness(float edgeThickness)

getEdgeThickness

public float getEdgeThickness()

setFadeEdges

public void setFadeEdges(boolean fadeEdges)

getFadeEdges

public boolean getFadeEdges()

setEdgeColor

public void setEdgeColor(int edgeColor)

getEdgeColor

public int getEdgeColor()

getPixel

public int getPixel(int x,
                    int y,
                    int[] inPixels,
                    int width,
                    int height)
Overrides:
getPixel in class CellularFilter

toString

public String toString()
Overrides:
toString in class CellularFilter

filter

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


Copyright © 2012 Railo