类 GlintFilter

  • 所有已实现的接口:
    java.awt.image.BufferedImageOp, java.lang.Cloneable

    public class GlintFilter
    extends AbstractBufferedImageOp
    A filter which renders "glints" on bright parts of the image.
    • 构造器详细资料

      • GlintFilter

        public GlintFilter()
    • 方法详细资料

      • setThreshold

        public void setThreshold​(float threshold)
        Set the threshold value.
        参数:
        threshold - the threshold value
        另请参阅:
        getThreshold()
      • getThreshold

        public float getThreshold()
        Get the threshold value.
        返回:
        the threshold value
        另请参阅:
        setThreshold(float)
      • setAmount

        public void setAmount​(float amount)
        Set the amount of glint.
        参数:
        amount - the amount min-value 0 max-value 1
        另请参阅:
        getAmount()
      • getAmount

        public float getAmount()
        Get the amount of glint.
        返回:
        the amount
        另请参阅:
        setAmount(float)
      • setLength

        public void setLength​(int length)
        Set the length of the stars.
        参数:
        length - the length
        另请参阅:
        getLength()
      • getLength

        public int getLength()
        Get the length of the stars.
        返回:
        the length
        另请参阅:
        setLength(int)
      • setBlur

        public void setBlur​(float blur)
        Set the blur that is applied before thresholding.
        参数:
        blur - the blur radius
        另请参阅:
        getBlur()
      • getBlur

        public float getBlur()
        Set the blur that is applied before thresholding.
        返回:
        the blur radius
        另请参阅:
        setBlur(float)
      • setGlintOnly

        public void setGlintOnly​(boolean glintOnly)
        Set whether to render the stars and the image or only the stars.
        参数:
        glintOnly - true to render only stars
        另请参阅:
        getGlintOnly()
      • getGlintOnly

        public boolean getGlintOnly()
        Get whether to render the stars and the image or only the stars.
        返回:
        true to render only stars
        另请参阅:
        setGlintOnly(boolean)
      • setColormap

        public void setColormap​(Colormap colormap)
        Set the colormap to be used for the filter.
        参数:
        colormap - the colormap
        另请参阅:
        getColormap()
      • filter

        public java.awt.image.BufferedImage filter​(java.awt.image.BufferedImage src,
                                                   java.awt.image.BufferedImage dst)
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object