public class GlintFilter extends AbstractBufferedImageOp
| Constructor and Description |
|---|
GlintFilter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst) |
float |
getAmount()
Get the amount of glint.
|
float |
getBlur()
Set the blur that is applied before thresholding.
|
Colormap |
getColormap()
Get the colormap to be used for the filter.
|
float |
getCoverage() |
boolean |
getGlintOnly()
Get whether to render the stars and the image or only the stars.
|
int |
getLength()
Get the length of the stars.
|
float |
getThreshold()
Get the threshold value.
|
void |
setAmount(float amount)
Set the amount of glint.
|
void |
setBlur(float blur)
Set the blur that is applied before thresholding.
|
void |
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
|
void |
setCoverage(float coverage) |
void |
setGlintOnly(boolean glintOnly)
Set whether to render the stars and the image or only the stars.
|
void |
setLength(int length)
Set the length of the stars.
|
void |
setThreshold(float threshold)
Set the threshold value.
|
java.lang.String |
toString() |
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGBpublic float getCoverage()
public void setCoverage(float coverage)
public void setThreshold(float threshold)
threshold - the threshold valuegetThreshold()public float getThreshold()
setThreshold(float)public void setAmount(float amount)
amount - the amountgetAmount()public float getAmount()
setAmount(float)public void setLength(int length)
length - the lengthgetLength()public int getLength()
setLength(int)public void setBlur(float blur)
blur - the blur radiusgetBlur()public float getBlur()
setBlur(float)public void setGlintOnly(boolean glintOnly)
glintOnly - true to render only starsgetGlintOnly()public boolean getGlintOnly()
setGlintOnly(boolean)public void setColormap(Colormap colormap)
colormap - the colormapgetColormap()public Colormap getColormap()
setColormap(com.jhlabs.image.Colormap)public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
java.awt.image.BufferedImage dst)
public java.lang.String toString()
toString in class java.lang.Object