Package com.jhlabs.image
Class CrystallizeFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.WholeImageFilter
-
- com.jhlabs.image.CellularFilter
-
- com.jhlabs.image.CrystallizeFilter
-
- All Implemented Interfaces:
Function2D
,java.awt.image.BufferedImageOp
,java.lang.Cloneable
public class CrystallizeFilter extends CellularFilter
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 com.jhlabs.image.CellularFilter
CellularFilter.Point
-
-
Field Summary
-
Fields inherited from class com.jhlabs.image.CellularFilter
amount, angle, angleCoefficient, bias, coefficients, colormap, distancePower, gain, gridType, HEXAGONAL, m00, m01, m10, m11, OCTAGONAL, random, RANDOM, randomness, results, scale, SQUARE, stretch, TRIANGULAR, turbulence, useColor
-
Fields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace
-
-
Constructor Summary
Constructors Constructor Description CrystallizeFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEdgeColor()
float
getEdgeThickness()
boolean
getFadeEdges()
int
getPixel(int x, int y, int[] inPixels, int width, int height)
void
setEdgeColor(int edgeColor)
void
setEdgeColor(java.lang.String edgeColor)
void
setEdgeThickness(float edgeThickness)
void
setFadeEdges(boolean fadeEdges)
java.lang.String
toString()
-
Methods inherited from class com.jhlabs.image.CellularFilter
clone, evaluate, filterPixels, 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 com.jhlabs.image.WholeImageFilter
filter, transformSpace
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
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)
-
setEdgeColor
public void setEdgeColor(java.lang.String edgeColor)
-
getEdgeColor
public int getEdgeColor()
-
getPixel
public int getPixel(int x, int y, int[] inPixels, int width, int height)
- Overrides:
getPixel
in classCellularFilter
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCellularFilter
-
-