BufferedImageOp, Cloneablepublic class SphereFilter extends TransformFilter
BILINEAR, CLAMP, edgeAction, interpolation, NEAREST_NEIGHBOUR, originalSpace, RGB_CLAMP, transformedSpace, WRAP, ZERO| 构造器 | 说明 |
|---|---|
SphereFilter() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
BufferedImage |
filter(BufferedImage src,
BufferedImage dst) |
|
Point2D |
getCentre() |
Get the centre of the effect as a proportion of the image size.
|
float |
getCentreX() |
|
float |
getCentreY() |
Get the centre of the effect in the Y direction as a proportion of the
image size.
|
float |
getRadius() |
Get the radius of the effect.
|
float |
getRefractionIndex() |
Get the index of refaction.
|
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 r) |
Set the radius of the effect.
|
void |
setRefractionIndex(float refractionIndex) |
Set the index of refaction.
|
String |
toString() |
|
protected void |
transformInverse(int x,
int y,
float[] out) |
Inverse transform a point.
|
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBfilterPixelsNN, getEdgeAction, getInterpolation, setEdgeAction, setInterpolation, transformSpacepublic void setRefractionIndex(float refractionIndex)
refractionIndex - the index of refactiongetRefractionIndex()public float getRefractionIndex()
setRefractionIndex(float)public void setRadius(float r)
r - the radius min-value 0getRadius()public float getRadius()
setRadius(float)public void setCentreX(float centreX)
centreX - the centergetCentreX()public float getCentreX()
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 BufferedImage filter(BufferedImage src, BufferedImage dst)
filter 在接口中 BufferedImageOpfilter 在类中 TransformFilterprotected void transformInverse(int x,
int y,
float[] out)
TransformFiltertransformInverse 在类中 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 imageCopyright © 2019. All rights reserved.