public class KaleidoscopeFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZEROfilterListener| Constructor and Description |
|---|
KaleidoscopeFilter()
Construct a KaleidoscopeFilter with no distortion.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
float |
getAngle()
Get the angle of the kaleidoscope.
|
float |
getAngle2()
Get the secondary angle of the kaleidoscope.
|
Point2D |
getCentre()
Get the centre of the effect as a proportion of the image size.
|
float |
getCentreX()
Get the centre of the effect in the X direction as a proportion of the image size.
|
float |
getCentreY()
Get the centre of the effect in the Y direction as a proportion of the image size.
|
ImageFilterOps |
getMetaData()
Bambi filter metadata.
|
float |
getRadius()
Get the radius of the effect.
|
int |
getSides()
Get the number of sides of the kaleidoscope.
|
void |
setAngle(float angle)
Set the angle of the kaleidoscope.
|
void |
setAngle2(float angle2)
Set the secondary angle of the kaleidoscope.
|
void |
setCentre(Point2D centre)
Set the centre of the effect as a proportion of the image size.
|
void |
setCentreX(float centreX)
Set the centre of the effect in the X direction as a proportion of the image size.
|
void |
setCentreY(float centreY)
Set the centre of the effect in the Y direction as a proportion of the image size.
|
void |
setRadius(float radius)
Set the radius of the effect.
|
void |
setSides(int sides)
Set the number of sides of the kaleidoscope.
|
String |
toString() |
protected void |
transformInverse(int x,
int y,
float[] out)
Inverse transform a point.
|
filterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpaceclone, createCompatibleDestImage, createCompatibleDestImage, filterDone, filterInitialize, filterProgress, filterStart, getBounds2D, getPoint2D, getRenderingHints, getRGB, setFilterListener, setRGBpublic KaleidoscopeFilter()
public void setSides(int sides)
sides - the number of sidesgetSides()public int getSides()
setSides(int)public void setAngle(float angle)
angle - the angle of the kaleidoscope.getAngle()public float getAngle()
setAngle(float)public void setAngle2(float angle2)
angle2 - the anglegetAngle2()public float getAngle2()
setAngle2(float)public void setCentreX(float centreX)
centreX - the centergetCentreX()public float getCentreX()
setCentreX(float)public void setCentreY(float centreY)
centreY - the centergetCentreY()public float getCentreY()
setCentreY(float)public void setCentre(Point2D centre)
centre - the centergetCentre()public Point2D getCentre()
setCentre(java.awt.geom.Point2D)public void setRadius(float radius)
radius - the radiusgetRadius()public float getRadius()
setRadius(float)public BufferedImage filter(BufferedImage src, BufferedImage dst)
filter in interface BufferedImageOpfilter in class TransformFilterprotected void transformInverse(int x,
int y,
float[] out)
TransformFiltertransformInverse in class TransformFilterx - the X position of the pixel in the output imagey - the Y position of the pixel in the output imageout - the position of the pixel in the input imagepublic ImageFilterOps getMetaData()
AbstractBufferedImageOpgetMetaData in interface ImageFilterOpSupportgetMetaData in class AbstractBufferedImageOpCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.